type Fetch = typeof fetch; type Stringify = typeof JSON.stringify; type Parse = typeof JSON.parse; export declare class QueryError extends Error { response: Response; status: number; data: any; constructor(response: Response, status: number, data: any, message: string); } type Args = Omit & { url: string | string[]; query?: Record | string; data?: Record | string; headers?: Record; method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | string; maxAttempts?: number; attempt?: number; fetch?: Fetch; stringify?: Stringify; parse?: Parse; }; declare const query: (args: Args) => Promise; export default query;