import { Element } from './element.js'; import { Action, Context, Pipe, Pipeline, Script } from './model/index.js'; import { ApiRequest, FetchService, ProxyService } from './services/index.js'; export declare class RuntimeCtx { action: Action; context: Context; script: Script; pipe?: Pipe; $introspectionEnabled: boolean; $introspectionResults: IntrospectionResult[]; $introspectionSpotlight: IntrospectionSpotlight | null; $introspectionStats: IntrospectionStats; $stack: CtxStackFrame[]; $screenshotTaken: boolean; constructor(action: Action); get browser(): import("./services/browser.js").BrowserService; get $browser(): import("./services/browser.js").BrowserService; get page(): import("../index.js").Page; get $page(): import("../index.js").Page; get $engine(): import("./engine.js").Engine; get $logger(): import("../logger.js").Logger; get $proxy(): ProxyService; get $api(): ApiRequest; get $fetch(): FetchService; createDocument(value?: any): Promise; allLocals(): IterableIterator<[string, Element[]]>; getLocal(key: string): Element[]; setLocal(key: string, elements: Element[]): void; evalDefinition(definitionId: string, inputSet: Element[]): Promise; takeDebugScreenshot(label: string): Promise; } export type IntrospectionResult = IntrospectionResultPipe | IntrospectionResultPipeline; export interface IntrospectionResultPipe { pipeId: string | null; inputSet: Element[]; outputSet: Element[] | null; nextInputSet: Element[] | null; error: Error | null; duration: number; } export interface IntrospectionResultPipeline { pipelineId: string | null; inputSet: Element[]; } export interface IntrospectionSpotlight { pipeId: string; index: number; } export interface IntrospectionStats { pipesExecuted: number; pipelinesExecuted: number; } export interface CtxStackFrame { pipeline: Pipeline; locals: Map; } //# sourceMappingURL=ctx.d.ts.map