/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { RootSupervisor } from "#behavior/supervision/RootSupervisor.js"; import { Constraint, ValueModel } from "@matter/model"; import { Val } from "@matter/protocol"; import { ValueSupervisor } from "../../supervision/ValueSupervisor.js"; /** * The number the flags of a bitmap value encode to, which is what a constraint on a bitmap bounds. * * A value of a bitmap is held as the record of its flags, so the magnitude the specification bounds is not the value * itself. A flag beyond the reach of a 32 bit shift states a magnitude this does not compute, and the bound is then * left unjudged rather than judged against a number that wrapped. * * @see {@link MatterSpecification.v161.Core} ยง 7.18.3 */ export declare function bitmapMagnitudeOf(schema: ValueModel, supervisor: RootSupervisor): ((value: Val) => number) | undefined; /** * Creates a function that validates values based on the constraint in the schema. */ export declare function createConstraintValidator(constraint: Constraint, schema: ValueModel, supervisor: RootSupervisor): ValueSupervisor.Validate | undefined; //# sourceMappingURL=constraint.d.ts.map