import { FetchHandlerOptions } from '@trpc/server/adapters/fetch'; import type { CreateDocumentOptions } from 'zod-openapi'; import { OpenApiRouter } from '../types'; import { type OpenApiResponseMetaFn } from './node-http'; export type CreateOpenApiFetchHandlerOptions = Omit, 'batching' | 'responseMeta'> & { responseMeta?: OpenApiResponseMetaFn; req: Request; endpoint: `/${string}`; /** * Maximum request body size in bytes. Defaults to `DEFAULT_MAX_BODY_SIZE` * (100kb), which the node HTTP adapters use too. * * tRPC's `FetchHandlerOptions` does not expose this option, so the fetch * adapter declares and enforces it itself. */ maxBodySize?: number; /** * Options forwarded to the non-production document validation, such as * `override` for custom scalar schemas. */ options?: CreateDocumentOptions; }; export declare const createOpenApiFetchHandler: (opts: CreateOpenApiFetchHandlerOptions) => Promise; //# sourceMappingURL=fetch.d.ts.map