import { Y4MStreamOptions } from './reader';
import { Observable } from 'rxjs';
import { YuvFrame } from './frame';
export type YuvParserOptions = Y4MStreamOptions & {
    ffmpeg?: string;
};
export declare class YuvParser {
    private readonly options;
    constructor(options?: YuvParserOptions);
    private parseHeader;
    private nextChunk;
    private nextState;
    readCustom(ffmpegArgs: string[], options?: Y4MStreamOptions): Observable<YuvFrame>;
    read(path: string, options?: Y4MStreamOptions): Observable<YuvFrame>;
    private readFromStream;
}
