export interface RequestBody { readonly url: string } export interface ResponseBody { readonly code: number readonly data?: { readonly name?: string readonly version?: string readonly interaction?: any readonly logo?: string readonly changelog?: string readonly hooks?: string[] } 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 url?: 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