UNPKG

ednl-liftstatus-web-components

Version:
13 lines (12 loc) 733 B
import { ObservableMap } from "@stencil/store"; import { ILiftStatusSensorResponse, ILiftStatusWebComponentError, ILiftStatusSensorDataResponse, DatePicker } from "./utils/types"; export interface ILiftStatusState { historicalSensorData: ILiftStatusSensorResponse[]; currentSensorData: ILiftStatusSensorDataResponse; error: ILiftStatusWebComponentError; hasBackDoor: boolean; datePicker: DatePicker; } export declare function createNewStore(idKey: string, initialState?: Partial<ILiftStatusState>): void; export declare function getStore(idKey?: string): Promise<ObservableMap<ILiftStatusState>>; export declare function updateStore(currentSensorData: ILiftStatusState["currentSensorData"], idKey?: string): Promise<void>;