/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { DefinitionError, ElementTag } from "../../common/index.js"; import { Model } from "../../models/index.js"; /** * Base class for all model validators. */ export declare class ModelValidator { protected model: T; /** * The errors {@link validate} found. */ readonly errors: DefinitionError[]; constructor(model: T); validate(): void; error(code: string, message: string): void; protected validateStructure(requireId: boolean, ...childTypes: Model.Type[]): void; protected validateProperty({ name, type, required, nullable }: Model.PropertyValidation): void; private validateChildUniqueness; } export declare namespace ModelValidator { const validators: { [key in ElementTag]: new (model: any) => ModelValidator; }; /** * An error about {@link model}. */ function errorOf(model: Model, code: string, message: string): DefinitionError; } //# sourceMappingURL=ModelValidator.d.ts.map