import { OpenAPIClient } from "./types.mjs"; import { $Fetch, FetchOptions } from "ofetch"; import { OpenAPISchemaRepository } from "apiful/schema"; //#region src/openapi/client.d.ts type SchemaPaths = K extends keyof OpenAPISchemaRepository ? OpenAPISchemaRepository[K] : Record; declare function createOpenAPIClient>(defaultOptions?: FetchOptions): OpenAPIClient; /** * Wraps a fetch function as an OpenAPI client, interpolating the `path` * parameters into the URL rather than passing them on as fetch options. */ declare function createOpenAPIHandler(fetchFn: $Fetch): OpenAPIClient; declare function resolvePathParams(path: string, params?: Record): string; //#endregion export { SchemaPaths, createOpenAPIClient, createOpenAPIHandler, resolvePathParams };