import { ScryptedDeviceType, ScryptedInterface, Setting, Settings, SettingValue } from "."; export interface StorageSetting extends Omit { deviceFilter?: string | ((test: { id: string; deviceInterface: string; interfaces: string[]; type: ScryptedDeviceType; ScryptedDeviceType: typeof ScryptedDeviceType; ScryptedInterface: typeof ScryptedInterface; }) => boolean); defaultValue?: any; persistedDefaultValue?: any; onPut?: (oldValue: any, newValue: any) => void; onGet?: () => Promise; mapPut?: (oldValue: any, newValue: any) => any; mapGet?: (value: any) => any; json?: boolean; hide?: boolean; noStore?: boolean; } export type StorageSettingsDict = { [key in T]: StorageSetting; }; export interface StorageSettingsDevice { storage: Storage; onDeviceEvent(eventInterface: string, eventData: any): Promise; } export declare class StorageSettings implements Settings { device: StorageSettingsDevice; settings: StorageSettingsDict; values: { [key in T]: any; }; hasValue: { [key in T]: boolean; }; options?: { hide?: { [key in T]?: () => Promise; }; onGet?: () => Promise>>; }; constructor(device: StorageSettingsDevice, settings: StorageSettingsDict); get keys(): { [key in T]: string; }; getSettings(): Promise; putSetting(key: string, value: SettingValue): Promise; putSettingInternal(setting: StorageSetting, oldValue: any, key: string, value: SettingValue): void; getItemInternal(key: T, setting: StorageSetting, rawDevice?: boolean): any; getItem(key: T): any; }