/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { BaseElement } from "#elements/BaseElement.js"; import { ModelIndex } from "#logic/ModelIndex.js"; import { Scope } from "#logic/Scope.js"; import { Model } from "./Model.js"; /** * A "scope" is a model provides name resolution for other models. * * {@link Model#type} must reference a model named in a parent scope. */ export declare abstract class ScopeModel> extends Model { #private; readonly isScope = true; /** * Obtain the {@link Scope} for this model. */ get scope(): Scope; /** * The members of {@link type}, reusing {@link cached} while the children of every model they derive from are * unchanged: the inheritance chain and, for attributes, the root, which supplies global attributes. */ protected membersOfType(type: Model.ConcreteType, cached?: ScopeModel.Members): ScopeModel.Members; finalize(): this; static is(model: Model): model is ScopeModel; static of(model: Model): ScopeModel>; } export declare namespace ScopeModel { /** * Members of one element type with the inputs they derive from. * * @internal */ interface Members { inputs: unknown[]; index: ModelIndex; } } //# sourceMappingURL=ScopeModel.d.ts.map