import * as express from 'express'; import * as core from 'domoja-core'; export declare class DevicesService { /** * Retrieves the list of devices */ getDevices(): { id: string; path: string; state: any; lastUpdateDate: Date; name: string; type: core.DeviceType; source: string; widget: core.WidgetType; tags: string; }[]; /** * Retrieves a device * @param name path of the device */ get(name: string): { id: string; path: string; state: any; lastUpdateDate: Date; name: string; type: core.DeviceType; source: string; widget: core.WidgetType; tags: string; }; /** * Sends a command to a device * @param name path of the device * @param command command sent to the device */ sendCommand(name: string, command: string): Promise; private doGet; /** * Get a snapshot from a camera device * @param name path of the device * Cached if ?t=NNNN is append */ getSnapshot(name: string, res: express.Response, req: express.Request): "Not a camera!" | Promise<{}>; /** * Get a stream from a camera device * @param name path of the device * Cached if ?t=NNNN is append */ getStream(name: string, res: express.Response, req: express.Request): "Not a camera!" | Promise<{}>; /** * Get the history of a device * @param name path of the device * @param aggregate type of aggregation: none|minute|hour|day|week|month|year * @param from from date, in YYYY-MM-DD or JSON formats, included * @param to from date, in YYYY-MM-DD or JSON formats, included */ getHistory(name: string, aggregate: "none" | "minute" | "hour" | "day" | "month" | "year", from: string, to: string): Promise<{}>; }