import { ObservableMap } from '@stencil/store'; import { ILiftStatusSensorResponse, ILiftStatusWebComponentError, ILiftStatusSensorDataResponse, DatePicker } from './utils/types'; import { SupportedLocale } from './utils/i18n'; import { ObjectType } from './utils/status'; type LocaleTranslator = (key: string, options?: Record) => string; export interface ILiftStatusState { historicalSensorData: ILiftStatusSensorResponse[]; currentSensorData: ILiftStatusSensorDataResponse; error: ILiftStatusWebComponentError; hasBackDoor: boolean; datePicker: DatePicker; locale: SupportedLocale; accessToken?: string; apiUrl?: string; externalIdentifier?: string; objectType?: ObjectType; hasResetContactCapability: boolean; isAdmin: boolean; } export type ILiftStatusStore = ObservableMap & { t: LocaleTranslator; }; export declare function createNewStore(idKey: string, initialState?: Partial): void; export declare function getStore(idKey?: string): Promise; export declare function updateStore(currentSensorData: ILiftStatusState['currentSensorData'], idKey?: string): Promise; export declare function updateErrorState(error: ILiftStatusState['error'], idKey?: string): Promise; export declare function removeStore(idKey: string): void; export {};