import { FFAVC } from './types'; export interface YUVBuffer { data: number[]; lineSize: number[]; } export declare const enum DecoderResult { /** * The calling is successful. */ Success = 0, /** * Output is not available in this state, need more input buffers. */ TryAgainLater = -1, /** * The calling fails. */ Error = -2 } export declare class FFAVCDecoder { static module: FFAVC; private wasmIns; private pag; private height; private buffer; constructor(wasmIns: any, pag: any); onConfigure(headers: Uint8Array[], mimeType: string, width: number, height: number): boolean; onSendBytes(bytes: Uint8Array, timestamp: number): DecoderResult; onDecodeFrame(): DecoderResult; onEndOfStream(): DecoderResult; onFlush(): void; onRenderFrame(): YUVBuffer | null; onRelease(): void; }