import { HTTPMethod } from '../typed-fetch.cjs'; import { OpenAPIDocument, Router, SecurityScheme } from '../types.cjs'; import { ClientOptions, ClientOptionsWithStrictEndpoint, OASClient, OASSecurityParams } from './types.cjs'; export declare class ClientValidationError extends Error implements AggregateError { readonly path: string; readonly method: HTTPMethod; errors: any[]; response: Response; constructor(path: string, method: HTTPMethod, errors: any[], response: Response); [Symbol.iterator](): ArrayIterator; } /** * Create a client for an OpenAPI document * You need to pass the imported OpenAPI document as a generic * * We recommend using the `NormalizeOAS` type to normalize the OpenAPI document * * @see https://the-guild.dev/openapi/fets/client/quick-start#usage-with-existing-rest-api * * @example * ```ts * import { createClient, type NormalizeOAS } from 'fets'; * import type oas from './oas.ts'; * * const client = createClient>({}); * ``` */ export declare function createClient; }; }>(options: Omit, 'globalParams'> & { globalParams: OASSecurityParams; }): OASClient; /** * Create a client for an OpenAPI document * You need to pass the imported OpenAPI document as a generic * * We recommend using the `NormalizeOAS` type to normalize the OpenAPI document * * @see https://the-guild.dev/openapi/fets/client/quick-start#usage-with-existing-rest-api * * @example * ```ts * import { createClient, type NormalizeOAS } from 'fets'; * import type oas from './oas.ts'; * * const client = createClient>({}); * ``` */ export declare function createClient(options: ClientOptionsWithStrictEndpoint): OASClient; /** * Create a client from a typed `Router` * * @see https://the-guild.dev/openapi/fets/client/quick-start#usage-with-fets-server */ export declare function createClient>(options: ClientOptions): TRouter['__client'];