import { NodeId } from './nodeid'; import { NodeIdType } from '../generated/NodeIdType'; /** * An ExpandedNodeId extends the NodeId structure. * * An ExpandedNodeId extends the NodeId structure by allowing the NamespaceUri to be * explicitly specified instead of using the NamespaceIndex. The NamespaceUri is optional. If it * is specified then the NamespaceIndex inside the NodeId shall be ignored. * * The ExpandedNodeId is encoded by first encoding a NodeId as described in Clause 5 .2.2.9 * and then encoding NamespaceUri as a String. * * An instance of an ExpandedNodeId may still use the NamespaceIndex instead of the * NamespaceUri. In this case, the NamespaceUri is not encoded in the stream. The presence of * the NamespaceUri in the stream is indicated by setting the NamespaceUri flag in the encoding * format byte for the NodeId. * * If the NamespaceUri is present then the encoder shall encode the NamespaceIndex as 0 in * the stream when the NodeId portion is encoded. The unused NamespaceIndex is included in * the stream for consistency, * * An ExpandedNodeId may also have a ServerIndex which is encoded as a UInt32 after the * NamespaceUri. The ServerIndex flag in the NodeId encoding byte indicates whether the * ServerIndex is present in the stream. The ServerIndex is omitted if it is equal to zero. * * @class ExpandedNodeId * @extends NodeId * * * * @param {NodeIdType} identifierType - the nodeID type * @param {Number|String|GUID|Buffer} value - the node id value. The type of Value depends on identifierType. * @param {Number} namespace - the index of the related namespace (optional , default value = 0 ) * @param {String|null} namespaceUri - NamespaceUri * @param {UInteger32|null} serverIndex - the server Index * @constructor */ export declare class ExpandedNodeId extends NodeId { static readonly NullExpandedNodeId: Readonly; static readonly UNDEFINED_NAMESPACE = 0; namespaceUri?: string; serverIndex: number; constructor(identifierType: NodeIdType, value: number | string | Uint8Array, namespace?: number, namespaceUri?: string, serverIndex?: number); /** * @method toString * @return {string} */ toString(): string; /** * convert nodeId to a JSON string. same as {@link NodeId#toString } * @method toJSON * @return {string} */ toJSON(): string; } export declare function coerceExpandedNodeId(value: any): ExpandedNodeId; /** * @method makeExpandedNodeId * @param value {ExpandedNodeId|NodeId|Integer} * @param [namespace=0] {Integer} the namespace * @return {ExpandedNodeId} */ export declare function makeExpandedNodeId(value: any, namespace?: number, namespaceUri?: string): ExpandedNodeId; export declare function resolveExpandedNodeId>(id: T, namespaceArray?: string[]): ExpandedNodeId | T; export declare function setCurrentNamespaceArray(namespaceArray?: string[]): void; export declare function getCurrentNamespaceArray(): string[] | undefined; //# sourceMappingURL=expanded_nodeid.d.ts.map