import type { ExecutionResult, ExecutionConfig, ATPEvent } from '@mondaydotcomorg/atp-protocol'; import type { ISession } from './base-session.js'; import type { InProcessSession } from './in-process-session.js'; import type { ServiceProviders } from './service-providers'; export declare class ExecutionOperations { private session; private inProcessSession?; private serviceProviders; private tokenRegistry; private lastExecutionConfig; constructor(session: ISession, serviceProviders: ServiceProviders, inProcessSession?: InProcessSession); /** * Executes code on the server with real-time streaming events via SSE. * * @param code - TypeScript code to execute * @param config - Optional execution configuration * @param onEvent - Callback for all streaming events (thinking, tool_start, tool_end, text, source, etc.) * @param onProgress - Legacy callback for progress events only (deprecated, use onEvent instead) */ executeStream(code: string, config?: Partial, onEvent?: (event: ATPEvent) => void, onProgress?: (message: string, fraction: number) => void): Promise; /** * Executes code on the server in a sandboxed environment. */ execute(code: string, config?: Partial): Promise; /** * Handles batch callbacks by executing them in parallel and resuming. */ private handleBatchCallbacksAndResume; /** * Handles a paused execution by processing the callback and resuming. */ private handlePauseAndResume; /** * Check if a service was explicitly requested in clientServices config */ private wasServiceExplicitlyRequested; /** * Resumes a paused execution with a callback result. */ resume(executionId: string, callbackResult: unknown): Promise; /** * Resumes a paused execution with batch callback results. */ private resumeWithBatchResults; } //# sourceMappingURL=execution-operations.d.ts.map