import type { Protocol } from 'devtools-protocol'; import { ObjectValue, SymbolValue, type Job, type Intrinsics, Value, ThrowCompletion, type ValueEvaluator, NormalCompletion, type ValueCompletion, type ScriptRecord, SourceTextModuleRecord, Realm, ExecutionContextStack, type AgentHostDefined, DynamicParsedCodeRecord, type Feature, type GCMarker, type ResumeEvaluateOptions, type ParseNode, type FunctionObject, type GlobalSymbolRegistryRecord } from '#self'; /** https://tc39.es/ecma262/#table-agent-record */ export interface AgentRecord { readonly LittleEndian: boolean; CanBlock: boolean; readonly Signifier: number; readonly IsLockFree1: boolean; readonly IsLockFree2: boolean; readonly IsLockFree8: boolean; CandidateExecution: never; KeptAlive: Set; ModuleAsyncEvaluationCount: number; readonly GlobalSymbolRegistry: GlobalSymbolRegistryRecord[]; } /** https://tc39.es/ecma262/#sec-agents */ export declare class Agent { #private; readonly AgentRecord: AgentRecord; executionContextStack: ExecutionContextStack; readonly jobQueue: Job[]; scheduledForCleanup: Set; hostDefinedOptions: AgentHostDefined; constructor(options?: AgentHostDefined); /** https://tc39.es/ecma262/#running-execution-context */ get runningExecutionContext(): import("#self").ExecutionContext; /** https://tc39.es/ecma262/#current-realm */ get currentRealmRecord(): Realm; /** https://tc39.es/ecma262/#active-function-object */ get activeFunctionObject(): import("#self").NullValue | FunctionObject; intrinsic(name: T): Intrinsics[T]; feature(name: Feature): boolean; mark(m: GCMarker): void; /** This function will synchronously return a completion if this is a nested evaluation and debugger cannot be triggered. */ evaluate(evaluator: ValueEvaluator, onFinished: (completion: NormalCompletion | ThrowCompletion) => void): NormalCompletion | ThrowCompletion | undefined; isPaused(): boolean; resumeEvaluate(options?: ResumeEvaluateOptions): IteratorResult; parsedSources: Map; addParsedSource(source: ScriptRecord | SourceTextModuleRecord): void; addDynamicParsedSource(realm: Realm, sourceText: string, ast?: unknown[] | ParseNode.Expression | ParseNode.Script): string | undefined; breakpointsEnabled: boolean; pauseOnExceptions: undefined | 'caught' | 'uncaught' | 'all'; breakpointsByFunction: WeakSet; testBreakpoint(node: ParseNode): boolean; addBreakpointByUrl(breakpoint: Protocol.Debugger.SetBreakpointByUrlRequest): Protocol.Debugger.SetBreakpointByUrlResponse; addBreakpointOnFunctionCall(f: FunctionObject, condition: string | undefined): Protocol.Debugger.SetBreakpointOnFunctionCallResponse; addInstrumentationBreakpoint(breakpoint: Protocol.Debugger.SetInstrumentationBreakpointRequest): Protocol.Debugger.SetInstrumentationBreakpointResponse; addBreakpointByLocation(breakpoint: Protocol.Debugger.SetBreakpointRequest): Protocol.Debugger.SetBreakpointResponse; removeBreakpoint(breakpointId: string): void; get debugger_isPreviewing(): boolean; get debugger_cannotPreview(): ThrowCompletion | undefined; debugger_tryTouchDuringPreview(object: ObjectValue): ThrowCompletion | undefined; debugger_markObjectCreated(object: ObjectValue): void; debugger_scopePreview(): Disposable | null; debugger_scopePreview(cb: () => T): T; } export interface Breakpoint extends Partial, Partial, Partial { readonly id: string; readonly resolvedBreakpoints: Set; readonly function?: FunctionObject; } export type BreakpointRequest = Partial & Partial & { readonly function?: FunctionObject; } & Partial; /** https://tc39.es/ecma262/#sec-agentsignifier */ export declare function AgentSignifier(): number; /** https://tc39.es/ecma262/#sec-agentcansuspend */ export declare function AgentCanSuspend(): boolean; export declare function IncrementModuleAsyncEvaluationCount(): number; //# sourceMappingURL=Agent.d.mts.map