import { FetchOptions } from "../types/Gateway.js"; import { RequestOptions } from "../http/RequestOptions.js"; import { Response } from "../http/Response.js"; import { HttpVerb } from "../http/HttpVerb.js"; import { Uri } from "../types/Uri.js"; import { Request } from "../http/Request.js"; import { RequestProvider } from "../http/RequestProvider.js"; import { Store } from "../types/Cache.js"; //#region src/services/Api.d.ts export type RouteOptions = RequestOptions | FetchOptions; export declare class Api { readonly provider: RequestProvider; protected store?: Store | undefined; constructor(provider?: RequestProvider, store?: Store | undefined); get(uri: Uri, options?: RouteOptions, transform?: (r: any) => any, transformError?: (r: any) => any): Promise; post(uri: Uri, body?: unknown, options?: RouteOptions, transform?: (r: any) => any, transformError?: (r: any) => any): Promise; put(uri: Uri, body?: unknown, options?: RouteOptions, transform?: (r: any) => any, transformError?: (r: any) => any): Promise; patch(uri: Uri, body?: unknown, options?: RouteOptions, transform?: (r: any) => any, transformError?: (r: any) => any): Promise; delete(uri: Uri, options?: RouteOptions, transform?: (b: any) => any, transformError?: (r: any) => any): Promise; options(verb: HttpVerb, options?: RouteOptions): RequestOptions; execute(req: Request): Promise; } export declare const api: Api; //#endregion //# sourceMappingURL=Api.d.ts.map