/** * Brings the JSON of an edition written by an earlier release of the * format up to the current shape. The shapes are recognised * structurally, so a file that is current already passes through * unchanged, and a file may be migrated any number of times. * * Format 0.1 used the type discriminator of versions and conditions * for their typology, held the keeper and the production metadata as * strings, and named the roll system on each copy. Some 0.1 files * also carry references written as values and two keys the format * had renamed before. */ type Json = any; /** A copy's id without the `copy/` that documents of earlier releases put before it. */ export declare const plainCopyId: (id: string) => string; /** * The motivation an edit of a version that derives from another is left * with where only the edition can tell what kind of change it is: one * that states neither a kind nor a reason, as a collation once left * them. `importJsonLd` reads its kind off its shape (`proposedMotivations`). */ export declare const uncheckedMotivation = "unchecked"; /** * Brings the JSON of an edition written by an earlier release of the * format up to the current shape. A document that is current already * passes through unchanged, and one may be migrated any number of * times. `importJsonLd` migrates what it reads, so this is needed only * to look at an old document as JSON. * @category Reading and writing */ export declare const migrate: (edition: Json) => Json; export {};