export declare const content_types: { readonly unknown: 0; readonly audio: 1; readonly video: 2; }; export declare type content_type = typeof content_types[keyof typeof content_types]; export declare const ContentTypes: ("unknown" | "audio" | "video")[]; export declare const stream_types: { readonly data: 0; readonly mpeg2_video: 1; readonly h264_video: 2; readonly vc1_video: 3; readonly ac3_audio: 4; readonly mpeg2_audio: 5; readonly lpcm_audio: 6; readonly aac_audio: 7; readonly unknown: 255; }; export declare type stream_type = typeof stream_types[keyof typeof stream_types]; export declare const StreamTypes: ("unknown" | "data" | "mpeg2_video" | "h264_video" | "vc1_video" | "ac3_audio" | "mpeg2_audio" | "lpcm_audio" | "aac_audio")[]; export declare type Packet = { data: Uint8Array; pts: number; dts: number; frame_ticks: number; program: number; stream_number: number; type: stream_type; stream_id: number; content_type: content_type; frame_num: number; }; export declare class Stream { program: number; id: number; type: stream_type; stream_id: number; content_type: content_type; dts: number; has_dts: boolean; first_pts: number; last_pts: number; has_pts: boolean; frame_ticks: number; frame_num: number; private payload; finalize(): Packet | null; write(mem: DataView, ptr: number, len: number, pstart: number, copy: boolean): Packet | null; } export declare function get_stream(pids: Map, pid: number): Stream;