/// /// import { EventEmitter } from 'tsee'; import { ICamera, ICameraProfilingInfoEvent, ICameraSnapshotForInferenceEvent, ICameraStartOptions } from './icamera'; export declare class FakeCamera extends EventEmitter<{ snapshot: (buffer: Buffer, filename: string) => void; snapshotForInference: (ev: ICameraSnapshotForInferenceEvent) => void; error: (message: string) => void; profilingInfo: (ev: ICameraProfilingInfoEvent) => void; }> implements ICamera { private _imagePath; private _image; private _timeout; private _lastOptions; /** * Instantiate the imagesnap backend (on macOS) */ constructor(opts: { imagePath: string; }); /** * Verify that all dependencies are installed */ init(): Promise; /** * List all available cameras */ listDevices(): Promise; /** * Start the capture process * @param options Specify the camera, and the required interval between snapshots */ start(options: ICameraStartOptions): Promise; stop(): Promise; getLastOptions(): ICameraStartOptions | undefined; }