import { Readable } from "node:stream"; import { InputAudioTrack, InputVideoTrack } from "mediabunny"; //#region src/mediabunny-ingest/types.d.ts type IngestSource = { type: "url"; url: string; } | { type: "path"; path: string; }; interface SelectedIngestTracks { video: InputVideoTrack | null; audio: InputAudioTrack | null; } interface TrackExtractionResult { /** A single-track fragmented MP4 stream, ready to be written to storage / fed to generateFragmentIndex. */ stream: Readable; /** * Resolves to an md5 digest (formatted as a dashed UUID, matching the rest of the * codebase's md5 convention) of this track's raw source packet bytes, once fully read. * For URL-sourced ingests there is no bulk-downloaded file to hash, so this is used as * the file's content fingerprint instead of a whole-file md5. */ digest: Promise; } //#endregion export { IngestSource, SelectedIngestTracks, TrackExtractionResult }; //# sourceMappingURL=types.d.cts.map