export type Params = Record; export type ErrorResponse = { code: number; statusCode?: never; message: string; } | { code?: never; statusCode: 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, method: 'POST' | 'PUT' | 'DELETE', body?: unknown, headers?: Record, credentials?: RequestCredentials): Promise; export declare function getData(url: string, headers?: Record, credentials?: RequestCredentials): Promise;