export interface RequestBody { /** * title */ readonly title: string readonly expiredAt?: any readonly description?: string readonly roleId?: number } 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 { readonly aid?: number } export interface ExtensibleRequestQuery extends Partial { [key: string]: any } export interface ExtensibleRequestHeaders extends Partial { [key: string]: any } export interface Params { readonly aid?: number readonly 'Content-Type'?: string readonly authorization?: string readonly title?: string readonly expiredAt?: any readonly description?: string readonly roleId?: 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