import type { EmbeddedVideoMode, MediaTranscriptMode, YoutubeTranscriptMode } from "./types.js";
export type DetectedVideo = {
    kind: "youtube" | "direct";
    url: string;
};
export type PrimaryVideoDetection = {
    video: DetectedVideo;
    source: "iframe" | "open-graph" | "video-tag";
    confidence: "high" | "medium";
};
export type EmbeddedYoutubeDecision = {
    detection: PrimaryVideoDetection | null;
    shouldUse: boolean;
    youtubeTranscriptMode: YoutubeTranscriptMode;
    mediaTranscriptMode: MediaTranscriptMode;
    notes: string | null;
};
export declare function detectPrimaryVideoDetailsFromHtml(html: string, url: string): PrimaryVideoDetection | null;
export declare function detectPrimaryVideoFromHtml(html: string, url: string): DetectedVideo | null;
export declare function resolveEmbeddedYoutubeDecision({ pageUrl, detection, mode, youtubeTranscriptMode, mediaTranscriptMode, }: {
    pageUrl: string;
    detection: PrimaryVideoDetection | null;
    mode: EmbeddedVideoMode;
    youtubeTranscriptMode: YoutubeTranscriptMode;
    mediaTranscriptMode: MediaTranscriptMode;
}): EmbeddedYoutubeDecision;
