import { ZSEIPlayer, ZSEIPublisher } from './seiWorker'; export declare function encodeString(str: string): Uint8Array; /** 防竞争码编码处理 */ export declare function concatRbspInStream(input: Uint8Array): { output: Uint8Array; outLength: number; }; /**解防竞争码 */ export declare function parseRbspInStream(input: Uint8Array, startIndex?: number): { output: Uint8Array; outLength: number; }; /**判断buffer内容是否一样 */ export declare function compareArrayBuffers(view1: Uint8Array, view2: Uint8Array): boolean; export declare function bufferToInt(buffer: Uint8Array): number; export declare function encodeSEINalu(userDataBuffer: ArrayBuffer, seiType: number, emulationPreventionByte: boolean): { rbspView: Uint8Array; ebspLength: number; }; /** * * 纯音频SEI方案: * 1 有SEI需要发送情况: * 编码回调数据是关键帧:则用假sps/ssp和假I帧 分别替换原来sps/pps和IDR数据, 中间插入SEI数据 * 编码回调数据是非关键帧: 直接用SEI替换非关键帧数据 * 2 没有SEI发送情况: * 编码回调数据是关键帧:则用假sps/ssp和假I帧 分别替换原来sps/pps和IDR数据 * 编码回调数据是非关键帧:空数据替换原有非关键帧数据 */ export declare function encodeFrameAudioOnly(encodedFrame: any, controller: TransformStreamDefaultController, isLowStream: boolean, vCodec: string, publisher: ZSEIPublisher): void; export declare function encodeVideo(encodedFrame: any, controller: any, isWorker: boolean, isLowStream: boolean, vCodec: string, publisher: ZSEIPublisher): void; export declare function decodeVideo(encodedFrame: any, controller: any, isWorker: boolean, player: ZSEIPlayer, streamID: string, decodeCallback: (data: any) => void): void; export declare const MAX_SIZE_INFO_LENGTH = 10;