import { ObjectType } from './status'; import { ILiftStatusAuth, ILiftStatusSensorResponse, IStatusCodeHistoryRow, IStatusCodeReferenceItem, TSeverity } from './types'; export type TResetCommand = 'reset_contact_when_idle' | 'reset_contact'; export interface IApiConfig { apiUrl: string; accessToken: string; } export declare class MissingApiConfigError extends Error { constructor(message: string); } export declare function authenticate({ apiUrl, accessToken }: IApiConfig): Promise; export declare function fetchSensorSummary({ apiUrl, accessToken, objectType, objectId, sensorId, from, }: IApiConfig & { objectType: ObjectType; objectId: string; sensorId: number; from: string; }): Promise; export declare function fetchSensorData({ apiUrl, accessToken, objectType, objectId, from, to, sensors, }: IApiConfig & { objectType: ObjectType; objectId: string; from: string; to: string; sensors: number[]; }): Promise; /** * Fetches the status codes of the given impact levels that were active in the * given period. Only concrete levels can be asked for: the API has a level for * every code it returns, so it has no "unknown" to filter on. An empty `levels` * reads as "no filter" server side, so pass at least one level. */ export declare function fetchStatusCodeHistory({ apiUrl, accessToken, objectType, objectId, from, to, levels, }: IApiConfig & { objectType: ObjectType; objectId: string; from: string; to: string; levels: TSeverity[]; }): Promise; /** * Fetches the reference (description and impact level) of every status code * whose code starts with `controller`. The API needs at least 4 characters. */ export declare function fetchStatusCodeReference({ apiUrl, accessToken, controller, }: IApiConfig & { controller: string; }): Promise; export declare function fetchSensorSummaries({ apiUrl, accessToken, objectType, objectId, from, to, sensors, }: IApiConfig & { objectType: ObjectType; objectId: string; from: string; to: string; sensors: number[]; }): Promise; /** A sensor series over the given period, bucketed by `resolution`. */ export declare function fetchSensorSeries({ apiUrl, accessToken, objectType, objectId, from, to, sensors, resolution, }: IApiConfig & { objectType: ObjectType; objectId: string; from: string; to: string; sensors: number[]; resolution: 'day' | 'week' | 'month'; }): Promise; export declare function sendResetCommand({ idKey, command }: { idKey: string | undefined; command: TResetCommand; }): Promise;