import type { ExecutionContextHostDefined, GCMarker } from '../host-defined/engine.mts'; import { type ReturnCompletion, type ValueCompletion } from '../completion.mts'; import { type YieldEvaluator, NullValue, type FunctionObject, Value, type GeneratorObject, type AsyncGeneratorObject, AbstractModuleRecord, type ScriptRecord, EnvironmentRecord, PrivateEnvironmentRecord, CallSite, PromiseCapabilityRecord, Realm, JSStringValue, UndefinedValue, type EnvironmentRecordWithThisBinding, ObjectValue, type YieldOrAwaitEvaluator, type PlainCompletion } from '#self'; /** https://tc39.es/ecma262/#sec-execution-contexts */ export declare class ExecutionContext { codeEvaluationState?: YieldOrAwaitEvaluator; Function: NullValue | FunctionObject; Generator?: GeneratorObject | AsyncGeneratorObject; ScriptOrModule: AbstractModuleRecord | ScriptRecord | NullValue; VariableEnvironment: EnvironmentRecord; LexicalEnvironment: EnvironmentRecord; PrivateEnvironment: PrivateEnvironmentRecord | NullValue; HostDefined?: ExecutionContextHostDefined; callSite: CallSite; promiseCapability?: PromiseCapabilityRecord; poppedForTailCall: boolean; Realm: Realm; copy(): ExecutionContext; mark(m: GCMarker): void; } /** https://tc39.es/ecma262/#sec-getactivescriptormodule */ export declare function GetActiveScriptOrModule(): AbstractModuleRecord | NullValue | ScriptRecord; /** https://tc39.es/ecma262/#sec-resolvebinding */ export declare function ResolveBinding(name: JSStringValue, env?: EnvironmentRecord | UndefinedValue | NullValue, strict?: boolean): import("#self").PlainEvaluator; /** https://tc39.es/ecma262/#sec-getthisenvironment */ export declare function GetThisEnvironment(): EnvironmentRecordWithThisBinding; /** https://tc39.es/ecma262/#sec-resolvethisbinding */ export declare function ResolveThisBinding(): import("#self").ThrowCompletion | Value; /** https://tc39.es/ecma262/#sec-getnewtarget */ export declare function GetNewTarget(): ObjectValue | UndefinedValue; /** https://tc39.es/ecma262/#sec-getglobalobject */ export declare function GetGlobalObject(): ObjectValue; /** https://tc39.es/ecma262/#sec-runsuspendedcontext */ export declare function RunSuspendedContext(context: ExecutionContext, completionRecord: ValueCompletion | PlainCompletion, _resumeType: 'await-resume'): YieldOrAwaitEvaluator; export declare function RunSuspendedContext(context: ExecutionContext, completionRecord: ValueCompletion | ReturnCompletion, _resumeType: 'generator-resume' | 'async-generator-resume'): YieldEvaluator; //# sourceMappingURL=ExecutionContext.d.mts.map