import type { Protocol } from 'devtools-protocol'; import type { Inspector } from './index.mts'; import { ManagedRealm, ObjectValue, SymbolValue, ThrowCompletion, Value, type ValueCompletion, EnvironmentRecord, Agent, CallSite, CallFrame } from '#self'; interface InspectedRealmDescriptor { readonly realm: ManagedRealm; readonly descriptor: Protocol.Runtime.ExecutionContextDescription; readonly agent: Agent; detach(): void; } export declare class InspectorContext { #private; constructor(io: Inspector); realms: (InspectedRealmDescriptor | undefined)[]; attachRealm(realm: ManagedRealm, agent: Agent): void; detachAgent(agent: Agent): void; detachRealm(realm: ManagedRealm): void; getRealm(realm: ManagedRealm | string | number | undefined): InspectedRealmDescriptor | undefined; /** @deprecated in this case we are guessing the realm should be using, which may create bad result */ getAnyRealm(): InspectedRealmDescriptor | undefined; releaseObject(id: string): void; releaseObjectGroup(group: string): void; getObject(objectId: string): ObjectValue | SymbolValue | undefined; toRemoteObject(value: Value, options: { objectGroup?: string; generatePreview?: boolean; }): Protocol.Runtime.RemoteObject; getProperties({ objectId, accessorPropertiesOnly, generatePreview, nonIndexedPropertiesOnly, ownProperties }: Protocol.Runtime.GetPropertiesRequest): Protocol.Runtime.GetPropertiesResponse; createExceptionDetails(completion: ThrowCompletion | Value, isPromise: boolean): Protocol.Runtime.ExceptionDetails; static callSiteToCallFrame(callSite: readonly (CallSite | CallFrame)[] | undefined): Protocol.Runtime.CallFrame[]; createEvaluationResult(completion: ValueCompletion): Protocol.Runtime.EvaluateResponse; getDebuggerCallFrame(): Protocol.Debugger.CallFrame[]; evaluateMode: 'script' | 'module' | 'console'; } export declare function getDisplayObjectFromEnvironmentRecord(record: EnvironmentRecord): undefined | { type: Protocol.Debugger.Scope['type']; object: ObjectValue; }; export {}; //# sourceMappingURL=context.d.mts.map