import type { LinkPreviewDeps } from "../deps.js";
import type { TranscriptResolution } from "../types.js";
import type { SourceMetrics } from "./types.js";
import type { DetectedVideo } from "./video.js";
export declare function refreshYoutubeSourceMetrics({ url, html, detectedVideo, transcriptResolution, deps, timeoutMs, startedAtMs, }: {
    url: string;
    html: string;
    detectedVideo: DetectedVideo | null;
    transcriptResolution: TranscriptResolution;
    deps: LinkPreviewDeps;
    timeoutMs: number;
    startedAtMs: number;
}): Promise<void>;
export declare function fetchYoutubeSourceMetrics({ fetchImpl, ytDlpPath, videoId, timeoutMs, }: {
    fetchImpl: typeof fetch;
    ytDlpPath: string | null;
    videoId: string;
    timeoutMs: number;
}): Promise<SourceMetrics | null>;
