/** * Finding what an edition holds by its id. Each kind of entity has an * index of its own, built from where the edition holds it when first * asked for and kept for as long as the state is (`perState`). The index * an entity is found in says what it is, so a lookup needs neither a * type discriminator nor a cast. */ import { Edition } from "../model/Edition.js"; import { NestedFeature } from "../model/Feature.js"; import { AnySymbol } from "../model/Symbol.js"; import { Version } from "../model/Version.js"; import { Modification, ProductionEvent, RollCopy } from "../model/RollCopy.js"; /** * The version with the id, where the edition holds one. * @category Lookups */ export declare const versionIn: (edition: Pick, id: string) => Readonly | undefined; /** * The copy with the id, where the edition holds one. * @category Lookups */ export declare const copyIn: (edition: Pick, id: string) => Readonly | undefined; /** * A symbol any version inserts. * @category Lookups */ export declare const symbolIn: (edition: Pick, id: string) => Readonly | undefined; /** * The symbols under the ids, leaving out an id that names none. * @category Lookups */ export declare const symbolsIn: (edition: Pick, ids: readonly string[]) => Readonly[]; /** * A feature or a patch on any copy, one a patch bears included. * @category Lookups */ export declare const featureIn: (edition: Pick, id: string) => Readonly | undefined; /** * The features and patches under the ids, leaving out an id that names none. * @category Lookups */ export declare const featuresIn: (edition: Pick, ids: readonly string[]) => Readonly[]; /** * The copy a feature sits on, a patch and everything it bears included. * @category Lookups */ export declare const copyOfFeature: (edition: Pick, featureId: string) => Readonly | undefined; /** * The act a copy states a feature in: the production event that * punched it, or the modification that brought it about. A feature * a patch bears came onto the copy with the patch, so the act is * the one that glued the patch on. Two features stand in one act * where this returns the very same object. * @category Lookups */ export declare const actOf: (edition: Pick, featureId: string) => Readonly | undefined;