export declare type Params = Record; export declare type ErrorResponse = { code: number; message: string; }; export declare function insertParams(template: string, params?: Params): string; export declare function stringifyQuery(query?: Params): string; export declare function fetchData(url: string, body?: unknown): Promise;