import { Sql } from 'postgres'; import { DefinitionOrLink, TextLinksParserState } from '../extractors/links.js'; import { LinkType } from '../links.js'; import { TextParserContext } from '../text_parsers/parsers.js'; import { Transformation } from '../text_parsers/transformers.js'; export declare function addLinksToHtml({ canutesDb, date, html, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, onLink, previousContext, state, }: { canutesDb: Sql; 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"; export declare function addLinksOrReferencesToHtmlPage({ canutesDb, date, defaultTextId, htmlTransformation, inputHtml, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, outputTypes: requestedOutputTypes, referredLegifranceTextsInfos, }: { canutesDb: Sql; 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; }>;