import type { PropertyChangeHandler, PropertySetHandler } from './types'; /** * Property wrapper that can be observed for changes. */ export declare class ObservableProperty { /** * The property value that is being observed. */ private _value; /** * The list of subscribers who are observing the property. */ private _subscribers; /** * Initializes the property. */ constructor(); /** * Check if the property value is set. * * @returns True if the value is set, otherwise false. */ exists(): boolean; /** * Get the property value. * * @returns The stored value. */ get(): T; /** * Sets the property value. * * The value may either be: * 1) a direct value matching the property type, or * 2) a function that will be called with a template of the current property value, that may be modified and will replace the property value when complete * * @param valueOrFunction - The value to set, or the function to call. * * @returns Nothing. */ set(valueOrFunction: T | PropertySetHandler): void; /** * Registers a subscriber to listen for property value changes. * * @param handler - The function to call when the property value changes. * * @returns Nothing. */ subscribe(handler: PropertyChangeHandler): void; /** * Removes a registers property value change subscriber. * * @param handler - The function to call when the property value changes. * * @returns Nothing. */ unsubscribe(handler: PropertyChangeHandler): void; } //# sourceMappingURL=ObservableProperty.d.ts.map