export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH' | 'OPTIONS'; export type LowerHttpMethod = 'get' | 'post' | 'put' | 'delete' | 'head' | 'patch' | 'options'; export type RequestType = 'FormData' | 'URLSearchParams' | 'ArrayBuffer' | 'Blob' | 'string' | 'any'; export type HttpStatusOk = 200 | 201 | 202 | 203 | 204 | 205 | 206; export type BasicHeaders = Record; export type AspidaRequest = { query?: any; headers?: any; httpBody?: any; body?: any; config?: Config; }; export type AspidaResponse = { status: V; headers: U; originalResponse: any; body: T; }; export type AspidaParams = { query?: any; headers?: any; body?: any; config?: Config | undefined; }; export type AspidaClient = { baseURL: string | undefined; fetch: (prefix: string, path: string, method: HttpMethod, params?: AspidaParams, type?: RequestType) => { send(): Promise>; json(): Promise>; text(): Promise>; arrayBuffer(): Promise>; blob(): Promise>; formData(): Promise>; }; }; export declare const headersToObject: (headers: Headers) => any; export declare const dataToURLString: (data: Record) => string; export declare const optionToRequest: (option?: AspidaParams, type?: RequestType) => AspidaRequest | undefined; type AspidaMethodParamsReqOthers = { reqHeaders?: any; reqFormat?: URLSearchParams | ArrayBuffer | Blob | string; reqBody?: any; polymorph?: Array>; }; type AspidaMethodParamsReqFormData = { reqHeaders?: any; reqFormat?: FormData; reqBody?: Record; polymorph?: Array>; }; type AspidaMethodParamsReq = AspidaMethodParamsReqOthers | AspidaMethodParamsReqFormData; type AspidaMethodParamsOthers = { status?: number; query?: Record; resHeaders?: Record; resBody?: any; }; export type AspidaMethodParams = { status?: number; query?: any; reqHeaders?: any; reqFormat?: FormData | URLSearchParams | ArrayBuffer | Blob | string | any; reqBody?: any; resHeaders?: any; resBody?: any; }; export type AspidaMethods = Partial>; type AspidaMethodParamsStrict = AspidaMethodParamsReq & AspidaMethodParamsOthers; type AspidaMethodsStrict = Partial>; export type DefineMethods = T; export {}; //# sourceMappingURL=index.d.ts.map