import type { Scope } from '../types/index.js'; /** * Scope helper functions for lazy prototype-chain based scope management. * * Instead of _.clone(scope) which copies O(n) properties each time, * we use Object.create(scope) which creates a child scope in O(1) time * that inherits from the parent via the prototype chain. */ /** * Create a child scope that inherits from the parent. * Uses Object.create() for O(1) creation instead of cloning. */ export declare function createChildScope(parent: Scope, additions?: Record): Scope; /** * Convert a prototype-chain scope to a plain object. * Uses for...in to walk the entire prototype chain. */ export declare function scopeToObject(scope: Scope): Record; /** * Iterate over all properties in a scope, including inherited ones. */ export declare function forEachInScope(scope: Scope, callback: (value: unknown, key: string) => void): void; //# sourceMappingURL=scope.d.ts.map