import type { LinkPreviewDeps } from "../deps.js";
import type { FirecrawlDiagnostics } from "../types.js";
import { extractReadabilityFromHtml } from "./readability.js";
import type { ExtractedLinkContent, FetchLinkContentOptions, MarkdownMode } from "./types.js";
export declare function buildResultFromHtmlDocument({ url, html, cacheMode, maxCharacters, youtubeTranscriptMode, mediaTranscriptMode, embeddedVideoMode, transcriptTimestamps, transcriptDiarization, transcriptVideoDownload, firecrawlDiagnostics, markdownRequested, markdownMode, timeoutMs, deps, readabilityCandidate, isNormalizedRedditThread, mediaHtml, }: {
    url: string;
    html: string;
    cacheMode: FetchLinkContentOptions["cacheMode"];
    maxCharacters: number | null;
    youtubeTranscriptMode: FetchLinkContentOptions["youtubeTranscript"];
    mediaTranscriptMode: FetchLinkContentOptions["mediaTranscript"];
    embeddedVideoMode: FetchLinkContentOptions["embeddedVideo"];
    transcriptTimestamps?: FetchLinkContentOptions["transcriptTimestamps"];
    transcriptDiarization?: FetchLinkContentOptions["transcriptDiarization"];
    transcriptVideoDownload?: FetchLinkContentOptions["transcriptVideoDownload"];
    firecrawlDiagnostics: FirecrawlDiagnostics;
    markdownRequested: boolean;
    markdownMode: MarkdownMode;
    timeoutMs: number;
    deps: LinkPreviewDeps;
    readabilityCandidate: Awaited<ReturnType<typeof extractReadabilityFromHtml>> | null;
    isNormalizedRedditThread?: boolean;
    mediaHtml?: string;
}): Promise<ExtractedLinkContent>;
