import { GlossaristModel } from './base.js'; import { Citation } from './citation.js'; export interface DetailedDefinitionJson { content?: string; sources?: ReadonlyArray; examples?: ReadonlyArray; } export interface WalkTextEntry { text: string; source: string; } export declare class DetailedDefinition extends GlossaristModel { readonly content: string; private readonly _rawSources; private readonly _rawExamples; private _sources; private _examples; constructor(data?: DetailedDefinitionJson); get sources(): ReadonlyArray; get examples(): ReadonlyArray; toJSON(): DetailedDefinitionJson; /** * Yield this definition's content and the content of every nested * example (recursively). Each item carries `{ text, source }` where * `source` is `.content` rooted at the `path` argument. */ walkTexts(path: string): Generator; static identityOf(value: { toJSON?: () => unknown; } | unknown | null): string; identity(): string; static fromJSON(data: DetailedDefinitionJson): DetailedDefinition; } //# sourceMappingURL=detailed-definition.d.ts.map