export type RequestBody = any export interface ResponseBody { readonly data: { /** * id */ readonly id: any /** * id */ readonly aid: any /** * collection id */ readonly cid: any /** * user id */ readonly uid: any /** * user role */ readonly roleId: number }[] 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 /** 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