/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { ValueModel } from "#models/ValueModel.js"; import { Scope } from "./Scope.js"; /** * Where a bitmap's members sit in its value, shared by the bitmap encoder, decoder and default builder. * * All arithmetic is bigint because number bitwise operators truncate to 32 bits and a bitmap may be 64 bits wide. */ export declare namespace BitmapMembers { /** * The bits a member occupies, `min` through `max` inclusive, as the TLV schema builds them. */ interface Range { min: number; max: number; /** * A single-bit member declared as a bit ("3") rather than a range; its value is a boolean. */ isFlag: boolean; } function of(model: ValueModel, scope?: Scope, options?: Scope.MemberOptions): import("./ModelIndex.js").ModelIndex; /** * The bits of {@link member}. A member with a lower bound only extends as far as {@link value} needs. */ function rangeOf(member: ValueModel, value?: number | bigint): Range | undefined; /** * The bits of {@link member} within {@link bitmap}. A member with a lower bound only extends to the bitmap's * highest set bit, and is one bit wide where none of its bits is set. */ function rangeIn(member: ValueModel, bitmap: bigint): Range | undefined; function maskOf({ min, max }: Range): bigint; /** * The member's value placed at its bits, masked to its width. */ function place(range: Range, value: boolean | number | bigint): bigint; /** * The member's value read from {@link bitmap}. */ function read(bitmap: bigint, range: Range): bigint; /** * The property name of {@link member} in a decoded bitmap. A FeatureMap keys its features by their title. */ function keyOf(bitmap: ValueModel, member: ValueModel & { title?: string; }): string; /** * {@link value} as a number where a number holds it exactly. */ function toNumeric(value: bigint): number | bigint; } //# sourceMappingURL=BitmapMembers.d.ts.map