export interface RequestBody { readonly id: any /** * status */ readonly status: number readonly identifyName?: string readonly description?: string readonly configData?: any } export interface ResponseBody { readonly code: number readonly message?: string } export interface responseHeader {} export interface RequestHeaders { readonly 'Content-Type': string readonly authorization?: string } export interface RequestQuery {} export interface RequestParams {} export interface ExtensibleRequestQuery extends Partial { [key: string]: any } export interface ExtensibleRequestHeaders extends Partial { [key: string]: any } export interface Params { readonly 'Content-Type'?: string readonly authorization?: string readonly id?: any readonly identifyName?: string readonly description?: string readonly configData?: any readonly status?: number /** request body */ readonly $body?: Partial /** request query */ readonly $query?: ExtensibleRequestQuery /** request headers */ readonly $headers?: ExtensibleRequestHeaders /** request params */ readonly $params?: Partial } export interface Options { readonly resolveWithFullResponse?: boolean readonly env?: string readonly host?: string readonly debug?: boolean | 'trace' | 'debug' readonly mock?: boolean | string } export interface OptionsWithFullResponse extends Options { readonly resolveWithFullResponse: true [key: string]: any } export interface OptionsWithoutwitFullResponse extends Options { readonly resolveWithFullResponse?: false [key: string]: any } /** * url: */ declare const api: { (): Promise (params: Partial): Promise (params: Partial, options: OptionsWithFullResponse): Promise (params: Partial, options: OptionsWithoutwitFullResponse): Promise type(v?: any): ResponseBody } export default api