export declare const getAuthToken: () => string; export declare const setAuthToken: (value: string) => void; export declare class RequestError extends Error { response?: Response; code: number; text: string; } type Options = RequestInit & { multipart?: boolean; headers?: Record; onProgress?: (loadedBytes: number, totalBytes: number) => void; onAbort?: Promise; }; export declare const request: (method: string, path: string, data?: any, options?: Options, withHost?: boolean) => Promise; export declare const retry: Promise>(times: number, fn: Fn) => Fn; export type OK = { result: true; }; export declare const url: (url: string, params: any) => string; export declare const get: (path: string, options?: Options) => Promise; export declare const post: (path: string, data?: Object, options?: Options, withHost?: boolean) => Promise; export declare const del: (path: string, data?: Object, options?: Options) => Promise; export {};