import { UmbStateManager } from './state.manager.js';
/**
 * A State Manager to manage read-only states.
 * @export
 * @class UmbReadOnlyStateManager
 * @augments {UmbStateManager<StateType>}
 * @template StateType
 */
export class UmbReadOnlyStateManager extends UmbStateManager {
    constructor() {
        super(...arguments);
        /**
         * Observable that emits true if the state is read-only
         * @memberof UmbReadOnlyStateManager
         */
        this.isReadOnly = this.isOn;
    }
    /**
     * Checks if the state is read-only
     * @returns {boolean} - true if the state is read-only
     * @memberof UmbReadOnlyStateManager
     */
    getIsReadOnly() {
        return this.getIsOn();
    }
}
