/** * Minimal WebVTT parser. * * Handles: * - UTF-8 BOM * - Timestamp lines `HH:MM:SS.mmm --> HH:MM:SS.mmm` * - Cue IDs (optional identifier line before timestamp) * - NOTE blocks (skipped) * - STYLE blocks (skipped) * - REGION blocks (skipped) * - Preserves , , formatting tags; strips all others */ export interface VttCue { id: string; startTime: number; endTime: number; text: string; } /** * Parse a WebVTT timestamp string into seconds. * * Formats: * HH:MM:SS.mmm * MM:SS.mmm */ export declare function parseTimestamp(ts: string): number; /** * Parse a WebVTT string into an array of cues. */ export declare function parseWebVTT(input: string): VttCue[]; //# sourceMappingURL=webvtt-parser.d.ts.map