import { Callback as NextCallback } from '../1/callback.js'; import { Components as NextComponents } from '../1/components.js'; import { OpenAPI as NextOpenAPI } from '../1/open-api.js'; import { Operation as NextOperation } from '../1/operation.js'; import { PathItem as NextPathItem } from '../1/path-item.js'; import { Paths as NextPaths } from '../1/paths.js'; import { Reference } from '../1/reference.js'; import { Callback } from './callback.js'; import { Components } from './components.js'; import { OpenAPI } from './open-api.js'; import { Operation } from './operation.js'; import { PathItem } from './path-item.js'; import { Paths } from './paths.js'; /** * Upgrades a Callback Object from v3.1.0 to v3.1.1 * @param old A Callback Object from v3.1.0 * @param components A Components Object from v3.1.0 * @return A Callback Object from v3.1.1 * * For each value in the map, if it's a PathItem Object, upgrade it; * otherwise, dereference it and then upgrade it. */ export declare const upgradeCallback: (old: Callback, components?: Components) => NextCallback; /** * Upgrades an Operation Object from v3.1.0 to v3.1.1 * @param old An Operation Object from v3.1.0 * @param components A Components Object from v3.1.0 * @return An Operation Object from v3.1.1 * * Upgrades each Callback Object in `callbacks`. */ export declare const upgradeOperation: (old: Operation, components?: Components) => NextOperation; /** * Upgrades a PathItem Object from v3.1.0 to v3.1.1 * @param old A PathItem Object from v3.1.0 * @param components A Components Object from v3.1.0 * @return A PathItem Object from v3.1.1 * * Upgrades each Operation Object in the PathItem Object. */ export declare const upgradePathItem: (old: PathItem, components?: Components) => NextPathItem; /** * Upgrades the Paths of an OpenAPI Object from v3.1.0 to v3.1.1 * @param old A map of PathItem Objects from v3.1.0 * @param components A Components Object from v3.1.0 * @return A map of PathItem Objects from v3.1.1 * * For each PathItem in the map, upgrade it. */ export declare const upgradePaths: (old: Paths, components?: Components) => NextPaths; /** * Upgrades the Components Object from v3.1.0 to v3.1.1 * @param old Components Object v3.1.0 * @return Components Object v3.1.1 * * The following changes are required: * * - `callbacks` is composed of PathItem Objects that need updated * - `paths` is composed of PathItem or Reference Objects that need dereferenced and updated */ export declare const upgradeComponents: (old: Components) => NextComponents; /** * Upgrades the webhooks of an OpenAPI Object from v3.1.0 to v3.1.1 * @param old A map of PathItem or Reference Objects from v3.1.0 * @param components A Components Object from v3.1.0 * @return A map of PathItem Objects from v3.1.1 * * For each value in the map, if it's a PathItem Object, upgrade it; * otherwise, dereference it and then upgrade it. */ export declare const upgradeWebhooks: (old: Record, components?: Components) => Record; /** * Upgrades an OpenAPI Object from v3.1.0 to v3.1.1 * @param old OpenAPI Object v3.1.0 * @return OpenAPI Object v3.1.1 * * The following changes are required: * * - `openapi` should increase to 3.1.1 * - `webhooks`, which is composed of PathItem/Reference Objects, must update * - `paths`, which is composed of PathItem Objects, must update * - `components`, which is composed of many different types of Objects, must update */ export declare const upgradeOpenAPI: (old: OpenAPI) => NextOpenAPI; //# sourceMappingURL=upgrade.d.ts.map