import type { TranscriptSegment } from "../../link-preview/types.js";
export type EmbeddedTrack = {
    url: string;
    type: string | null;
    language: string | null;
};
export type EmbeddedMedia = {
    kind: "video" | "audio";
    mediaUrl: string | null;
    track: EmbeddedTrack | null;
};
export declare function detectEmbeddedMedia(html: string, baseUrl: string): EmbeddedMedia | null;
export declare function fetchCaptionTrack(fetchImpl: typeof fetch, track: EmbeddedTrack, notes: string[], includeSegments: boolean): Promise<{
    text: string;
    segments: TranscriptSegment[] | null;
} | null>;
