/** * Minimal SCTE-35 splice_info_section decoder. * * Accepts the three forms a splice_info_section can arrive in: * - ArrayBuffer (DataCue.data from enableID3MetadataCues) * - Uint8Array (same, already sliced) * - base64 string (EXT-X-DATERANGE X-SCTE35 attribute value) * * Only splice_insert (0x05) and time_signal (0x06) are decoded. * All other command types are returned as { type: 'unknown' }. */ export type SpliceCommand = { type: 'splice_insert'; outOfNetwork: boolean; durationSecs: number | null; autoReturn: boolean; } | { type: 'time_signal'; } | { type: 'unknown'; commandType: number; }; /** * Decode a SCTE-35 splice_info_section. * Returns `null` if the buffer cannot be parsed as a valid section. */ export declare function decodeSplice(source: ArrayBufferLike | Uint8Array | string): SpliceCommand | null; //# sourceMappingURL=scte35.d.ts.map