import type * as Context from "effect/Context"; import type { PlatformError } from "effect/PlatformError"; import * as Duration from "effect/Duration"; import * as Effect from "effect/Effect"; import { AiError } from "effect/unstable/ai"; import { ChildProcessSpawner } from "effect/unstable/process"; export type SpawnerService = Context.Service.Shape; export declare const provideSpawner: (effect: Effect.Effect, spawner: SpawnerService) => Effect.Effect>; export interface SpawnInput { readonly command: string; readonly args: ReadonlyArray; readonly stdin: string; readonly cwd?: string | undefined; readonly onStderr?: ((chunk: string) => void) | undefined; } export interface SpawnCapture { readonly stdout: string; readonly stderr: string; readonly exitCode: number; } export declare const spawn: (input: SpawnInput) => Effect.Effect; export interface RunCliInput extends SpawnInput { readonly module: string; readonly method: string; readonly timeout: Duration.Duration; } export declare const runCli: (input: RunCliInput) => Effect.Effect; //# sourceMappingURL=spawn.d.ts.map