/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { ValueModel } from "../models/ValueModel.js"; import type { Scope } from "./Scope.js"; /** * Select the default value a member should assume absent an explicit value, gated by operational support (mandatory * given active features, or explicitly implemented). * * Returns undefined for a supported member whose metatype has no datatype-level default (e.g. enum, string, bytes) * - such a member reads undefined even where typings make it required. */ export declare function SelectDefaultValue(scope: Scope, member: ValueModel): unknown; /** * Select the value storage holds for a member absent an explicit value. * * Diverges from {@link SelectDefaultValue} by omitting the datatype-level fallbacks: a mandatory member the writer * left out must fail validation naming the member, not read as a silent zero. What storage omits a read still * supplies, because {@link MandatoryDefaultValue} synthesizes the specification's fallback for a mandatory member * that holds no value. * * The return may be model-owned shared state (an explicit default), so callers copy it before mutation or hand-out. */ export declare function StoredDefaultValue(scope: Scope, member: ValueModel): unknown; /** * Recursively compute the default a mandatory member assumes absent an explicit value, following the Data Model * specification's "Fallback Column" rules (null when nullable, 0/false for analog and boolean, empty for strings * and lists, structs composited recursively; an enumeration's fallback is manufacturer-specific and stays * undefined). * * Diverges from {@link SelectDefaultValue} for object/bitmap metatypes: it consults only a default the schema * states explicitly - {@link DefaultValue}'s constructed partial objects ignore conformance and bypass the * nullable rule - and builds struct defaults by recursing over conformant members instead of returning an empty * `{}`. The return may be model-owned shared state (an explicit default), so callers copy it before mutation or * hand-out. */ export declare function MandatoryDefaultValue(scope: Scope, member: ValueModel, visiting?: Set): unknown; //# sourceMappingURL=SelectDefaultValue.d.ts.map