import type { OpenApiDocument } from '../types.js'; /** * Convert OpenAPI schema objects to JSON Schema in-place on a cloned document. * * Rather than visiting every node in the document (the previous brute-force * approach), we convert only the locations the OAS spec defines as Schema * Objects: * * 1. components.schemas[*] / definitions[*] — converted directly, since * these are top-level schema objects not nested under a `schema` key. * * 2. Any value under a literal `schema` key elsewhere in the document * (parameter schemas, requestBody content schemas, response content * schemas, header schemas, callback schemas) — covered by * walkAndConvertDefinitionKeys. * * fromSchema recurses into sub-schemas (properties, allOf, anyOf, …) * internally, so it only needs to be called once per top-level schema entry. * * OpenAPI 3.1+ schemas are already valid JSON Schema (Draft 2020-12) and * require no conversion. */ export declare function convertOpenApiDocumentDefinitionsToJsonSchema(document: OpenApiDocument): OpenApiDocument;