import type { JSONSchema8 as RealSchema } from 'jsonschema8'; import type _Ajv from 'ajv'; type Ajv = _Ajv.default; export declare namespace Old { type Schema = RealSchema & { id: string; }; interface Model { validate: Ajv['validate']; schema: () => Promise; examples: () => Promise>; } interface Formats extends Ajv { mediatypes: Record; _addMediatypes(types: Record): void; model(type: string): Promise; } } interface MigrateOptions { format?: 'json' | 'ts'; outdir?: string; root?: string; } export declare function migrate(formats: Old.Formats, { format, outdir, root, }?: MigrateOptions): Promise; export {};