/** * @module node-opcua-factory */ import type { ExpandedNodeId, NodeId } from "node-opcua-nodeid"; import { type EnumerationDefinitionSchema } from "./enumerations.js"; import type { CommonInterface, ConstructorFunc, ConstructorFuncWithSchema, IBaseUAObject, IStructuredTypeSchema } from "./types.js"; export interface StructureInfo { constructor: ConstructorFuncWithSchema | null; schema: IStructuredTypeSchema; } export declare class DataTypeFactory { defaultByteOrder: string; targetNamespace: string; imports: string[]; private _structureInfoByName; private _structureInfoByDataTypeMap; private _structureInfoByEncodingMap; private _enumerations; private baseDataFactories; constructor(baseDataFactories: DataTypeFactory[]); getStructureIterator(): IterableIterator; getEnumIterator(): IterableIterator; repairBaseDataFactories(baseDataFactories: DataTypeFactory[]): void; /** * the factories this one falls back to for the types it does not define itself. * * Exposed so that a caller about to discard a factory can tell whether another one still * depends on it - see `ExtraDataTypeManager.unregisterDataTypeFactory`. */ getBaseDataFactories(): readonly DataTypeFactory[]; hasBuiltInType(name: string): boolean; getBuiltInType(name: string): CommonInterface; getBuiltInTypeByDataType(nodeId: NodeId): CommonInterface; registerEnumeration(enumeration: EnumerationDefinitionSchema): void; hasEnumeration(enumName: string): boolean; getEnumeration(enumName: string): EnumerationDefinitionSchema | null; findStructureInfoForDataType(dataTypeNodeId: NodeId): StructureInfo; getStructureInfoForDataType(dataTypeNodeId: NodeId): StructureInfo | null; structuredTypesNames(): IterableIterator; enumerations(): IterableIterator; getStructureInfoByTypeName(typeName: string): StructureInfo; hasStructureByTypeName(typeName: string): boolean; getStructuredTypeSchema(typeName: string): IStructuredTypeSchema; dump(): void; registerAbstractStructure(dataTypeNodeId: NodeId, className: string, schema: IStructuredTypeSchema): void; registerClassDefinition(dataTypeNodeId: NodeId, className: string, classConstructor: ConstructorFuncWithSchema): void; getConstructor(binaryEncodingNodeId: NodeId): ConstructorFunc | null; hasConstructor(binaryEncodingNodeId: NodeId): boolean; constructObject(binaryEncodingNodeId: NodeId): IBaseUAObject; associateWithBinaryEncoding(className: string, expandedNodeId: ExpandedNodeId): void; toString(): string; private _registerFactory; } //# sourceMappingURL=datatype_factory.d.ts.map