/** * Where in an edition each id stands and where it is referenced, as * paths an operation can follow into a draft of it. */ import { Edition } from "../model/Edition.js"; /** * Where something stands in an edition: the keys and indices that lead * to it, as `pathIn` gives them and the operations on beliefs take * them. * @category Lookups */ export type Path = (string | number)[]; /** * What stands at the path in an edition or a draft of one, or nothing * where the path leads nowhere. * @category Lookups */ export declare const getAt: (path: Path, obj: unknown) => T | undefined; /** * Where the entity with the id stands in the edition, or nothing where it holds none. * @category Lookups */ export declare const pathIn: (edition: Edition, id: string) => Path | undefined; /** * Every id the edition gives an entity of its own, references left out. * @category Lookups */ export declare const idsIn: (edition: Edition) => Iterable; /** * Where the edition references the id. * @category Lookups */ export declare const linksTo: (edition: Edition, id: string) => Path[];