import { NodeHTTPResponse } from '@trpc/server/adapters/node-http'; import { OpenApiHTTPRequest, OpenApiMethod } from '../types'; export declare const acceptsRequestBody: (method: OpenApiMethod | "HEAD") => boolean; export declare const getContentType: (req: OpenApiHTTPRequest) => string | undefined; /** * Parse a `Content-Type` header into a lowercase media type without its * parameters. Multiple header values are joined with a comma so a header that * contains several media types is never mistaken for a single one. */ export declare const normalizeMediaType: (contentType: string | string[] | undefined) => string | undefined; /** * Whether the header describes JSON: the media type is exactly * `application/json` or uses a `+json` structured suffix. */ export declare const isJsonMediaType: (contentType: string | string[] | undefined) => boolean; export declare const getRequestSignal: (req: OpenApiHTTPRequest, res: NodeHTTPResponse, maxBodySize?: number) => AbortSignal; //# sourceMappingURL=method.d.ts.map