import { DefinitionOrLink, TextLinksParserState } from '../extractors/links.js'; import { LegiResolver } from '../../legi/resolver.js'; import { LinkType } from '../../links.js'; import { TextParserContext } from '../../text_parsers/parsers.js'; import { Transformation } from '../../text_parsers/transformers.js'; export declare function addLinksToHtml({ legiResolver, date, html, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, onLink, previousContext, state, }: { legiResolver: LegiResolver; date: string; html: string; linkBaseUrl: string; linkType: LinkType; logIgnoredReferencesTypes?: boolean; logPartialReferences?: boolean; logReferences?: boolean; onLink?: (link: DefinitionOrLink, index: number) => Promise; previousContext?: TextParserContext; state?: TextLinksParserState; }): Promise<{ context: TextParserContext; output: string | null; }>; export type OutputByType = Partial>; export type OutputType = "links" | "links_or_references" | "references"; interface HtmlReplacement { order: number; replacement: string; start: number; stop: number; } export declare function addLinksOrReferencesToHtmlPage({ legiResolver, date, defaultTextId, htmlTransformation, inputHtml, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, outputTypes: requestedOutputTypes, referredLegifranceTextsInfos, }: { legiResolver: LegiResolver; date: string; defaultTextId?: string; htmlTransformation: Transformation; inputHtml: string; linkBaseUrl: string; linkType: LinkType; logIgnoredReferencesTypes?: boolean; logPartialReferences?: boolean; logReferences?: boolean; outputTypes: OutputType[]; referredLegifranceTextsInfos?: boolean; }): Promise<{ outputByType: OutputByType; referredLegifranceTextCountByCid: Record; }>; export {};