import GirafeSingleton from '../../base/GirafeSingleton'; import State from './state'; import ConfigManager from '../configmanager'; declare class StateManager extends GirafeSingleton { #private; get state(): State; configManager: ConfigManager | null; constructor(type: string); setDefaultValues(): void; onChange(property: string, oldValue: unknown, value: unknown): void; subscribe(path: string, callback: (oldValue: any, value: any, parent?: any) => void | Promise): void; subscribe(path: RegExp, callback: (oldValue: any, value: any, parent?: any) => void | Promise): void; unsubscribe(callback: (oldValue: any, value: any, parent?: any) => void | Promise): void; getPropertyByPath(obj: any, path: string): { found: boolean; object: any; }; /** * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value * @returns a replacer for a cyclic value */ getCircularReplacer(): (_key: string, value: any) => any; areEqual(obj1: any, obj2: any): boolean; } export default StateManager;