declare type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK'; interface apiObject { url: string; method: Method; headers?: any; cache?: number; data?: any; baseURL?: string; timeout?: number; callback: (result: any) => any; } export declare type Api = string | apiObject | ((...items: Array) => Promise); export declare function isApi(api: Api): api is apiObject; declare function rcAxios(initApi: Api): Promise; export default rcAxios;