import { r as MarkdownFactsDocument, t as MarkdownFact } from "./markdown-facts-CEACwik1.mjs"; //#region src/markdown-reading.d.ts type MarkdownAnnotationConfidence = 'strong' | 'weak'; interface MarkdownAnnotation { id: string; kind: Kind; targetFactId: string; sourceSpan?: MarkdownFactSpan; textSpan?: MarkdownFactSpan; ruleId: string; confidence: MarkdownAnnotationConfidence; metadata?: Readonly; } interface MarkdownAnnotationInput { kind: Kind; targetFactId: string; sourceSpan?: MarkdownFactSpan; textSpan?: MarkdownFactSpan; confidence: MarkdownAnnotationConfidence; metadata?: Readonly; } interface MarkdownReadingLookup { sourceMarkdown: string; rootId: string; facts: readonly MarkdownFact[]; factById: ReadonlyMap; parentById: ReadonlyMap; } interface MarkdownAnnotationContext extends MarkdownReadingLookup { previousAnnotations: readonly MarkdownAnnotation[]; getAnnotationsForFact(factId: string, kind?: string): MarkdownAnnotation[]; getAnnotation(factId: string, kind: string): MarkdownAnnotation | undefined; } interface MarkdownProjectionContext extends MarkdownReadingLookup { annotations: readonly MarkdownAnnotation[]; projections: Readonly>; getAnnotationsForFact(factId: string, kind?: string): MarkdownAnnotation[]; getAnnotation(factId: string, kind: string): MarkdownAnnotation | undefined; } interface MarkdownAnnotationRule { id: string; annotate(context: MarkdownAnnotationContext): readonly MarkdownAnnotationInput[]; } interface MarkdownProjectionRule { id: string; project(context: MarkdownProjectionContext): Output | undefined; } interface MarkdownReadingPlugin { id: string; order?: number; annotationRules?: readonly MarkdownAnnotationRule[]; projectionRules?: readonly MarkdownProjectionRule[]; } interface MarkdownReadingDocument extends MarkdownFactsDocument { annotations: MarkdownAnnotation[]; projections: Record; } interface MarkdownFactSpan { start: number; end: number; } declare class MarkdownReadingPluginRegistry { private plugins; constructor(plugins?: readonly MarkdownReadingPlugin[]); register(plugin: MarkdownReadingPlugin): void; resolve(): MarkdownReadingPlugin[]; } declare function sortMarkdownReadingPlugins(plugins: readonly MarkdownReadingPlugin[]): MarkdownReadingPlugin[]; declare function createMarkdownReadingDocument(sourceMarkdown: string, plugins?: readonly MarkdownReadingPlugin[]): MarkdownReadingDocument; declare function createMarkdownReadingDocumentFromFacts(factsDocument: MarkdownFactsDocument, plugins?: readonly MarkdownReadingPlugin[]): MarkdownReadingDocument; declare function getMarkdownFactSpan(fact: MarkdownFact): MarkdownFactSpan | undefined; declare function trimMarkdownSlice(sourceMarkdown: string, start: number, end: number): string; declare function getMarkdownHeadingFacts(document: { facts: readonly MarkdownFact[]; }): MarkdownFact[]; declare function getMarkdownHeadingEnd(headings: readonly MarkdownFact[], index: number, sourceLength: number): number; declare function getMarkdownAnnotationsForFact(annotations: readonly MarkdownAnnotation[], factId: string, kind?: string): MarkdownAnnotation[]; declare function getMarkdownAnnotation(annotations: readonly MarkdownAnnotation[], factId: string, kind: string): MarkdownAnnotation | undefined; declare function buildMarkdownParentMap(facts: readonly MarkdownFact[]): Map; //#endregion export { trimMarkdownSlice as S, getMarkdownAnnotationsForFact as _, MarkdownAnnotationRule as a, getMarkdownHeadingFacts as b, MarkdownProjectionRule as c, MarkdownReadingPlugin as d, MarkdownReadingPluginRegistry as f, getMarkdownAnnotation as g, createMarkdownReadingDocumentFromFacts as h, MarkdownAnnotationInput as i, MarkdownReadingDocument as l, createMarkdownReadingDocument as m, MarkdownAnnotationConfidence as n, MarkdownFactSpan as o, buildMarkdownParentMap as p, MarkdownAnnotationContext as r, MarkdownProjectionContext as s, MarkdownAnnotation as t, MarkdownReadingLookup as u, getMarkdownFactSpan as v, sortMarkdownReadingPlugins as x, getMarkdownHeadingEnd as y };