UNPKG

axis-snapshot

Version:

A Node.js library written in TypeScript capable of getting snapshots from Axis Communication cameras.

26 lines 1.08 kB
import { Connection } from 'axis-core'; import { SnapshotOptions } from './SnapshotOptions'; /** * Class responsible for getting snapshots from a camera. */ export declare class Snapshot { private readonly connection; /** * Initializes a new instance of the class. * @param connection The connection to the device. */ constructor(connection: Connection); /** * Takes a {link https://wikipedia.org/wiki/BMP_file_format|BMP} snapshot from the camera. * @param options The BMP snapshot options. * @param init The object containing any custom settings that you want to apply to the request. */ bmp(options?: SnapshotOptions, init?: RequestInit): Promise<Buffer>; /** * Takes a {link https://en.wikipedia.org/wiki/JPEG|JPEG} snapshot from the camera. * @param options The Jpeg snapshot options. * @param init The object containing any custom settings that you want to apply to the request. */ jpeg(options?: SnapshotOptions, init?: RequestInit): Promise<Buffer>; } //# sourceMappingURL=Snapshot.d.ts.map