import type { FunctionId } from "../api/types.js"; /** Internal per-function scope facts (not part of the public FunctionNode API). */ export interface FunctionScopeMeta { readonly id: FunctionId; /** Enclosing scope container start (UTF-16). */ readonly scopeStart: number; /** Enclosing scope container end (UTF-16). */ readonly scopeEnd: number; /** * FunctionDeclaration-style hoist: visible throughout the enclosing scope. * const/let arrows are only visible after declaration. */ readonly hoisted: boolean; } /** Local name binding that may shadow seeds (functions + const aliases). */ export interface LocalNameBinding { readonly absolutePath: string; readonly name: string; readonly declPos: number; readonly scopeStart: number; readonly scopeEnd: number; readonly hoisted: boolean; /** Function id when this binding is a function node. */ readonly functionId?: FunctionId; } export declare class ScopeMetaStore { private readonly byId; private readonly locals; setFunction(meta: FunctionScopeMeta): void; getFunction(id: FunctionId): FunctionScopeMeta | undefined; addLocal(binding: LocalNameBinding): void; /** Innermost local binding for `name` visible at `position`. */ findLocal(absolutePath: string, name: string, position: number): LocalNameBinding | undefined; /** Merge another file's scope facts into this store. */ mergeFrom(other: ScopeMetaStore): void; clear(): void; } export declare function visibleAt(b: Pick, position: number): boolean; //# sourceMappingURL=scope-meta.d.ts.map