/// import { FFmpegProgress } from './FFmpegProgress'; import { ChildProcess } from 'child_process'; import { Hook } from './Hookable'; import { Duration } from 'data-unit'; /** * @category composable/executors */ export declare enum FFmpegErrorDetector { VerboseError = 0, Fuzzy = 1, None = 2 } /** * @category composable/executors */ export declare class FFmpegProcess { args: string[]; process: ChildProcess; killed: boolean; errorDetector: FFmpegErrorDetector; onProgress: Hook; onOutputLine: Hook; onEnd: Hook; onError: Hook; protected errorMessages: string[]; constructor(args: string[], errorDetector?: FFmpegErrorDetector); constructor(process: ChildProcess, errorDetector?: FFmpegErrorDetector); protected setup(duration?: number | string | Duration): void; start(duration?: number | string | Duration): void; pause(): void; resume(): void; kill(): void; wait(): Promise; }