/** * Swagger2Converter — Swagger 2.0 → OpenAPI 3.0 Adapter * * Converts a Swagger 2.0 document into an OpenAPI 3.0-compatible * structure so the existing parser can handle both versions. * * Handles: * - `host` + `basePath` + `schemes` → `servers` * - `definitions` → `components.schemas` * - `parameters` with `in: body` → `requestBody` * - `produces`/`consumes` → per-operation `content` types * - `$ref` prefix rewrite (`#/definitions/` → `#/components/schemas/`) * * @module */ type AnyObj = Record; /** * Returns `true` if the input looks like a Swagger 2.0 document. */ export declare function isSwagger2(raw: Record): boolean; /** * Convert a Swagger 2.0 document into an OpenAPI 3.0-equivalent object. * * The output is NOT a valid 3.0 spec in every edge case, but it is * structurally close enough for the existing parser to produce a * correct {@link ApiSpec} IR. */ export declare function convertSwagger2ToV3(raw: Record): AnyObj; export {}; //# sourceMappingURL=Swagger2Converter.d.ts.map