import { type ParsedMediaType } from 'content-type'; import type { OpenAPIV3 } from 'openapi-types'; import type { OpenApiSchema } from '../openapi-types'; import type { OpenApiDocumentRefs } from './refs'; import type { ParserOptions } from './options'; interface EncodingInfo { contentType: string; isImplicit: boolean; parsedContentTypes: ParsedMediaType[]; } type EncodingMap = Record; /** * Parse the type of a resolved request body or response object. * @param bodyOrResponseObject - The request body or response object to parse the type from. * @param refs - Object representing cross references throughout the document. * @param options - Options that were set for service generation. * @returns The type name of the request body if there is one. * @internal */ export declare function parseTopLevelMediaType(bodyOrResponseObject: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject | undefined, refs: OpenApiDocumentRefs, options: ParserOptions): { schema: OpenApiSchema; mediaType: string; encoding?: EncodingMap; } | undefined; /** * @internal */ export declare function parseMediaType(bodyOrResponseObject: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject | undefined, refs: OpenApiDocumentRefs, options: ParserOptions): { schema: OpenApiSchema; mediaType: string; encoding?: EncodingMap; } | undefined; /** * @internal */ export declare function getMediaTypes(bodyOrResponseObject: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject | undefined): string[]; export {};