/// /// import { EventEmitter } from 'tsee'; import { ICamera, ICameraProfilingInfoEvent, ICameraSnapshotForInferenceEvent, ICameraStartOptions } from './icamera'; export declare class Imagesnap extends EventEmitter<{ snapshot: (buffer: Buffer, filename: string) => void; snapshotForInference: (ev: ICameraSnapshotForInferenceEvent) => void; error: (message: string) => void; profilingInfo: (ev: ICameraProfilingInfoEvent) => void; }> implements ICamera { private _captureProcess?; private _tempDir?; private _watcher?; private _lastOptions?; private _keepAliveTimeout; private _verbose; private _isStarted; private _isRestarting; private _pts; /** * Instantiate the imagesnap backend (on macOS) */ constructor(verbose?: boolean); /** * 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; private timeoutCallback; private cleanupTempDirAsync; }