/** * Unified loader for various input sources */ import type { WatchHistoryMeta } from '../types'; export { loadWatchHistory } from './history'; export { loadWatchLater } from './watchLater'; /** * Create metadata entries from video IDs or URLs */ export declare function fromVideoIds(inputs: string[]): WatchHistoryMeta[]; /** * Merge multiple sources, deduplicating by video ID. * The first source containing a given ID wins. Pure function. */ export declare function mergeVideoSources(...sources: WatchHistoryMeta[][]): WatchHistoryMeta[]; /** * Extract a video ID from a single JSONL record. Returns null when the record * does not match a known shape or fails to parse. Pure function. * * Accepts both `{ meta: { videoId } }` (TranscriptResult shape) and the bare * `{ videoId }` legacy shape. */ export declare function extractIdFromJsonlRecord(line: string): string | null; /** * Load processed video IDs from an existing JSONL file */ export declare function loadProcessedIds(jsonlPath: string): Promise>; //# sourceMappingURL=index.d.ts.map