/** * @module node-opcua-address-space */ import { UAVariableT } from "node-opcua-address-space-base"; import { LocalizedText } from "node-opcua-data-model"; import { UAStateVariable, UATwoStateVariable_Base } from "node-opcua-nodeset-ua"; import { DataType } from "node-opcua-variant"; import { ISetStateOptions } from "./interfaces/i_set_state_options"; /** * @see https://reference.opcfoundation.org/v104/Core/docs/Part9/5.2/ * @see https://reference.opcfoundation.org/v104/Core/VariableTypes/TwoStateVariableType/ * @see https://reference.opcfoundation.org/v104/Core/ReferenceTypes/HasFalseSubState/ */ export interface UATwoStateVariableHelper { // references readonly isFalseSubStateOf: UAStateVariable | null; readonly isTrueSubStateOf: UAStateVariable | null; // --- helpers --- setValue(boolValue: boolean, options?: ISetStateOptions): void; getValue(): boolean; getValueAsString(): string; getFalseSubStates(): UAStateVariable[]; getTrueSubStates(): UAStateVariable[]; } export interface UATwoStateVariableEx extends UAVariableT, UATwoStateVariableHelper, UATwoStateVariable_Base {}