import { AudioSampleSink, VideoSampleSink } from 'mediabunny'; import type { MediaRequestInit } from '../request-init'; type VideoSinks = { sampleSink: VideoSampleSink; }; type AudioSinks = { sampleSink: AudioSampleSink; }; export type AudioSinkResult = AudioSinks | 'no-audio-track' | 'cannot-decode-audio' | 'unknown-container-format' | 'network-error'; export type VideoSinkResult = VideoSinks | 'no-video-track' | 'cannot-decode' | 'cannot-decode-prores' | 'cannot-decode-alpha' | 'unknown-container-format' | 'network-error'; export declare const makeSinks: (src: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn", credentials: RequestCredentials | undefined, requestInit?: MediaRequestInit | undefined) => { promise: Promise<{ getVideo: () => Promise; getAudio: (index: number | null) => Promise; actualMatroskaTimestamps: { observeTimestamp: (startTime: number) => void; getRealTimestamp: (observedTimestamp: number) => number | null; }; isMatroska: boolean; getDuration: () => Promise; }>; dispose: () => void; }; export type GetSink = Awaited['promise']>; export {};