import type { OAuthConfigType } from './auth'; import type { ConfigType } from './client'; export declare function _request(config: ConfigType): Promise; export declare function _get(url?: ConfigType<_>['url'] | ConfigType<_>, params?: ConfigType<_>['params'] | ConfigType<_>, config?: WithOptional, 'baseURL'>): Promise; export declare function _delete(url?: ConfigType<_>['url'] | ConfigType<_>, params?: ConfigType<_>['params'] | ConfigType<_>, config?: WithOptional, 'baseURL'>): Promise; export declare function _post(url?: ConfigType['url'] | ConfigType, data?: D, config?: WithOptional, 'baseURL'>): Promise; export declare function _put(url?: ConfigType['url'] | ConfigType, data?: D, config?: WithOptional, 'baseURL'>): Promise; export declare function _patch(url?: ConfigType['url'] | ConfigType, data?: D, config?: WithOptional, 'baseURL'>): Promise; export declare function createApi(baseURL: ConfigType<_>['url'] | ConfigType<_>, config?: ConfigType<_>, oAuth1?: OAuthConfigType): { request: (config?: ConfigType) => Promise; get: (url: ConfigType<_>['url'], params?: ConfigType<_>['params'], config?: ConfigType<_>) => Promise; delete: (url: ConfigType<_>['url'], params?: ConfigType<_>['params'], config?: ConfigType<_>) => Promise; post: (url: ConfigType<_>['url'], data?: D_1 | undefined, config?: ConfigType | undefined) => Promise; put: (url: import("./client").UrlType | undefined, data?: D_2 | undefined, config?: ConfigType | undefined) => Promise; patch: (url: import("./client").UrlType | undefined, data?: D_3 | undefined, config?: ConfigType | undefined) => Promise; defaultConfig: Readonly, "data">>; }; export type ApiInstance = ReturnType;