import type { RunnerConfig, ScriptContext, VariableDefinition } from "../common/types/index.js"; export interface ScriptExecutorOptions { consoleInterception?: { enabled: boolean; logFunction?: (message: string) => void; includeLevel?: boolean; preserveOriginal?: boolean; useColors?: boolean; }; } export interface ScriptExecutor { run: (scriptPath: string, context: ScriptContext) => Promise; } export interface EnvironmentPrompter { promptForVariables(variables: VariableDefinition[], existingEnv: Record): Promise>; } export interface ScriptExecutionOptions { scriptPath: string; config: RunnerConfig; cliProvidedEnv?: Record; cliEnvPrompts?: string[]; prompter?: EnvironmentPrompter; logger?: { info: (message: string) => void; warn: (message: string) => void; error: (message: string) => void; }; } /** * Creates a script executor instance that can run scripts * with proper lifecycle management (tearUp, execute, tearDown) */ export declare function createScriptExecutorInstance(options?: ScriptExecutorOptions): ScriptExecutor; /** * High-level script execution function that handles environment variable prompting * and script execution. Can be used by both CLI and TUI with different prompters. */ export declare function executeScriptWithEnvironment(options: ScriptExecutionOptions): Promise; //# sourceMappingURL=script-executor.d.ts.map