/** UTF-16 source offsets, zero-based and end-exclusive, in the complete HTML. */ export interface HtmlSourceRange { charStart: number; charEndExclusive: number; } /** Decoded/whitespace-normalized HTML text; the range locates its containing source. */ export interface HtmlSourceText { text: string; sourceRange?: HtmlSourceRange; partial: boolean; } export interface HtmlSourceImage { id: string; relationship: "figure" | "inline_image" | "page_representative" | "linked_image" | "structured_image"; urls: ReadonlyArray<{ url: string; attribute: string; sourceRange?: HtmlSourceRange; }>; omittedUrls?: number; sourceRange?: HtmlSourceRange; caption?: HtmlSourceText; alt?: HtmlSourceText; credits: ReadonlyArray; /** Explicit image/figure fields only, never inherited from page publication dates. */ imageDates: ReadonlyArray<{ property: string; value: string; sourceRange?: HtmlSourceRange; }>; } export interface HtmlSourceEvidence { schema: "omnius.html-source-evidence.v1"; responseSha256: string; finalUrl: string; baseUrl: string; page: { title?: HtmlSourceText; dates: ReadonlyArray<{ kind: "published" | "modified"; value: string; sourceRange?: HtmlSourceRange; }>; }; /** Complete static body text, including every article/main/table/code section. * This is not JavaScript execution or a claim about live browser visibility. */ textCoverage: { scope: "all_static_body_text"; partial: false; rendered: false; excludedElements: ReadonlyArray<"script" | "style" | "template">; includedAttributes: ReadonlyArray; }; /** Legacy field name; contains the whole static body, not a first-article preview. */ article: HtmlSourceText & { selection: "article" | "main" | "body"; matchingArticles: number; }; images: ReadonlyArray; omittedImages: number; } /** Static quoted evidence only: no execution, network access, relevance judgement or authority grant. */ export declare function extractHtmlSourceEvidence(body: string, finalUrl: string): HtmlSourceEvidence | undefined; /** Bounded model view. URLs are never cut; decoded text excerpts and omissions are explicit. */ export declare function renderHtmlSourceEvidence(evidence: HtmlSourceEvidence, maxChars: number, includeArticle?: boolean): string;