import { i18n } from 'i18next'; import { GndObject, GndRole } from '../gnd/types.js'; import { LocatorOptions } from '../decorator/createLocator.js'; import { ReadiumSpeechUtterance } from '../utterance.js'; import { SentenceSegmenter } from './sentenceSegmenter.js'; import { ExtractionFormat, ExtractUtterancesOptions, LanguageMode, Segmentation, SubstitutionTable } from './types.js'; export interface WalkContext { i18n: i18n; skip: ReadonlySet; contextualize: ReadonlySet; contextualizationShapes: Partial>; contextualizationParams?: (role: GndRole, node: GndObject) => Record | undefined; format: ExtractionFormat; inlineContextualization: boolean; language?: LanguageMode; segmentation: Segmentation; segmentationSuppressions: Record; segmenter: SentenceSegmenter; substitutions: SubstitutionTable; blockStarts: Set; tableRowNumbers: Map; tableCellHeaders: Map; synthetic: Set; ancestorChains: Map; pendingRange: Map; edgeSubstitutedLocate: WeakMap; } export type SourceTrace = (GndObject | [GndObject, GndObject] | undefined)[]; export declare const blockLevelRoleSet: ReadonlySet; export declare const deferrablePlaceholderRoleSet: ReadonlySet; export declare const descriptionFoldingRoleSet: ReadonlySet; export declare const valueFoldingRoleSet: ReadonlySet; export declare const contentlessRoleSet: ReadonlySet; export declare function makeWalkContext(nodes: GndObject[], options: ExtractUtterancesOptions): Promise;