/** * A piece of a note as it is shown: a stretch of text, or a reference * to an entity by its id, with the words the note puts in its place * where it gives any. * @category Format types */ export type NotePart = { type: 'text'; text: string; } | { type: 'reference'; id: string; label?: string; }; /** * The note in the pieces it is shown in: stretches of text and what they refer to. * @category Lookups */ export declare const partsOfNote: (note: string) => NotePart[]; /** * The ids a note refers to, in the order it names them. * @category Lookups */ export declare const referencesInNote: (note: string) => string[]; /** * The note as it reads, with every reference resolved to the name the * edition gives that entity, or to the words the note puts in its place. * A reference nothing answers to keeps its id, so that the gap is visible * rather than silent. * @category Lookups */ export declare const resolveNote: (note: string, nameOf: (id: string) => string | undefined) => string;