import type { FirecrawlScrapeResult, LinkPreviewDeps } from "../deps.js";
import type { FirecrawlDiagnostics } from "../types.js";
import type { ExtractedLinkContent, FetchLinkContentOptions } from "./types.js";
export declare function shouldFallbackToFirecrawl(html: string): boolean;
export declare function buildResultFromFirecrawl({ url, payload, cacheMode, maxCharacters, youtubeTranscriptMode, mediaTranscriptMode, embeddedVideoMode, transcriptTimestamps, transcriptDiarization, transcriptVideoDownload, firecrawlDiagnostics, markdownRequested, timeoutMs, deps, }: {
    url: string;
    payload: FirecrawlScrapeResult;
    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;
    timeoutMs: number;
    deps: LinkPreviewDeps;
}): Promise<ExtractedLinkContent | null>;
