export declare const send: ({ method, path, data, headers, base }: { method: string; path: string; data?: any; headers?: Record; base: string; }) => Promise<{ response: Response; json?: undefined; } | { response: Response; json: T & { error?: string; }; }>; export declare const apiGet: (base: string, path: string, headers?: Record) => Promise<{ response: Response; json?: undefined; } | { response: Response; json: T & { error?: string; }; }>; export declare const apiDel: (base: string, path: string, data?: any, headers?: Record) => Promise<{ response: Response; json?: undefined; } | { response: Response; json: T & { error?: string; }; }>; export declare const apiPost: (base: string, path: string, data?: any, headers?: Record) => Promise<{ response: Response; json?: undefined; } | { response: Response; json: T & { error?: string; }; }>; export declare const apiPut: (base: string, path: string, data?: any, headers?: Record) => Promise<{ response: Response; json?: undefined; } | { response: Response; json: T & { error?: string; }; }>;