import type { MediaType } from '../../core/Constants'; type BaseTypeDetection = { detectedType: MediaType; }; export type AudioTypeDetection = BaseTypeDetection & { detectedType: MediaType.Audio; codecs: string[]; language?: string; }; export type VideoTypeDetection = BaseTypeDetection & { detectedType: MediaType.Video; codecs: string[]; width?: number; height?: number; }; export type MuxedTypeDetection = BaseTypeDetection & { detectedType: MediaType.Muxed; audioCodecs: string[]; videoCodecs: string[]; language?: string; width?: number; height?: number; }; export type TypeDetection = AudioTypeDetection | VideoTypeDetection | MuxedTypeDetection; export {};