import type * as Cause from "effect/Cause"; import type { ElicitationContext, ElicitationResponse } from "@executor-js/sdk/core"; import type { Executor as PromiseExecutor } from "@executor-js/sdk/promise"; import type { CodeExecutionError, CodeExecutor, ExecuteResult } from "@executor-js/codemode-core"; import { type ExecutionEngine as EffectExecutionEngine, type ExecutionResult, type PausedExecution, type ResumeResponse } from "./engine"; export type ElicitationHandler = (ctx: ElicitationContext) => Promise; export type ExecutionEngineConfig = { readonly executor: PromiseExecutor; readonly codeExecutor: CodeExecutor; }; export type ExecutionEngine = { readonly execute: (code: string, options: { readonly onElicitation: ElicitationHandler; }) => Promise; readonly executeWithPause: (code: string, options?: { readonly autoApprove?: boolean; }) => Promise; readonly resume: (executionId: string, response: ResumeResponse) => Promise; readonly getPausedExecution: (executionId: string) => Promise; readonly pausedExecutionCount: () => Promise; readonly hasPausedExecutions: () => Promise; readonly getDescription: () => Promise; }; /** * Promise-wrap an Effect-native `ExecutionEngine` (from `./engine`). * Exposed separately so callers that already hold an Effect engine * (apps/cloud's execution-stack composes both) can convert it for hosts * that need the Promise surface (host-mcp). */ export declare const toPromiseExecutionEngine: (engine: EffectExecutionEngine) => ExecutionEngine; export declare const createExecutionEngine: (config: ExecutionEngineConfig) => ExecutionEngine; export { formatExecuteResult, formatPausedExecution } from "./engine"; export type { ExecutionResult, PausedExecution, ResumeResponse, ExecuteResult }; export { buildExecuteDescription } from "./description"; export { ExecutionToolError } from "./errors"; //# sourceMappingURL=promise.d.ts.map