UNPKG

@bacnet-js/device

Version:

A TypeScript library for implementing BACnet IP devices in Node.js.

22 lines 1.15 kB
import { type ApplicationTagValueTypeMap, type BACNetAppData, type PropertyIdentifier, type CharacterStringEncoding, ApplicationTag } from '@bacnet-js/client'; import { BDAbstractSingletProperty } from './abstract.js'; import { type BDPropertyAccessContext } from '../types.js'; export declare class BDSingletProperty<Tag extends ApplicationTag, Type extends ApplicationTagValueTypeMap[Tag] = ApplicationTagValueTypeMap[Tag]> extends BDAbstractSingletProperty<Tag, Type> { #private; constructor(identifier: PropertyIdentifier, type: Tag, writable: boolean, value: Type, encoding?: CharacterStringEncoding); getData(ctx?: BDPropertyAccessContext): BACNetAppData<Tag, Type>; getValue(ctx?: BDPropertyAccessContext): Type; setData(data: BACNetAppData<Tag, Type>): Promise<void>; setValue(value: Type): Promise<void>; /** * * @internal */ ___readData(index: number, ctx: BDPropertyAccessContext): BACNetAppData | BACNetAppData[]; /** * * @internal */ ___writeData(data: BACNetAppData<Tag, Type> | BACNetAppData<Tag, Type>[]): Promise<void>; } //# sourceMappingURL=singlet.d.ts.map