/** * @file Grammar Scope Resolver * @description Evaluates grammar slot scope constraints against the world model * during parsing to find entities matching `.where()` definitions. * * Pipeline role: PARSE PHASE — called by EntitySlotConsumer during grammar * matching. Delegates to WorldModel methods (getVisibleEntities, * getTouchableEntities, etc.) which internally use VisibilityBehavior. * * NOT the same as the world-model's RuleScopeEvaluator (rule-based pre-parse * vocabulary) or the stdlib's StandardScopeResolver (validation-phase entity * resolution with disambiguation). */ import { ScopeConstraint, GrammarContext } from '@sharpee/if-domain'; import { IEntity } from '@sharpee/core'; /** * Evaluates scope constraints to find matching entities */ export declare class GrammarScopeResolver { /** * Get entities that match a scope constraint */ static getEntitiesInScope(constraint: ScopeConstraint, context: GrammarContext): IEntity[]; /** * Check if a single entity matches a scope constraint */ static entityMatchesScope(entity: IEntity, constraint: ScopeConstraint, context: GrammarContext): boolean; /** * Get all entities in the world */ private static getAllEntities; /** * Get visible entities from current location */ private static getVisibleEntities; /** * Get touchable entities from current location */ private static getTouchableEntities; /** * Get entities carried by the actor */ private static getCarriedEntities; /** * Get nearby entities (visible + adjacent locations) */ private static getNearbyEntities; /** * Check if entity matches a filter */ private static matchesFilter; /** * Check if entity has a specific trait * Supports both entity.has() method and entity.get() method patterns */ private static entityHasTrait; /** * Get entity names and aliases for matching * Supports both legacy attributes.name and IdentityTrait patterns */ private static getEntityNames; /** * Find entities by name in a given scope */ static findEntitiesByName(name: string, constraint: ScopeConstraint, context: GrammarContext): IEntity[]; } //# sourceMappingURL=grammar-scope-resolver.d.ts.map