import { IScope } from '../types/core'; import { IScopeBindings } from './ScopeBindings'; export declare class Scope implements IScope { readonly parent: IScope | null; /** * 创建根部 Scope,根据需要被上溯的作用域链决定是否开启新的 */ static createRootScope(): IScope; bindings?: IScopeBindings; constructor(parent?: IScope | null); /** * 创建一个子作用域,并且初始化ownIdentifiers变量 * @param ownIdentifiers 子作用域的变量名 * @returns 返回一个作用域实例 */ createSubScope(ownIdentifiers: string[]): IScope; }