import type { ProcessHandle } from '../../process/process-spec.js'; import type { CliAdapter } from './types.js'; export declare function cancelCliContext(contextId: string): void; export declare function cliRoot(): string; export declare function cliContextPath(id: string): string; export declare function cliEnvironment(adapter: CliAdapter, contextPath: string): NodeJS.ProcessEnv; export declare function startCliProcess(options: { adapter: CliAdapter; executable: string; contextId: string; args: string[]; signal?: AbortSignal; timeoutMs?: number; maxOutputBytes?: number; beforeSpawn?: () => void; onOutput?: (stream: 'stdout' | 'stderr', chunk: Buffer) => void; }): Promise; export declare function resolveCliArtifact(contextId: string, filePath: string): Promise;