import type { ChildProcess } from 'node:child_process'; import type { AgentAdapter, SpawnArgs } from './adapter.js'; import type { ErrorCode, RetryPolicy } from './types.js'; export interface ActiveSpawn { child: ChildProcess; killTimer: NodeJS.Timeout | null; } export declare const isWindows: boolean; export declare function computeDelay(policy: Required, attempt: number): number; export declare function resolveSpawnArgs(adapter: AgentAdapter, spawnArgs: SpawnArgs): Promise; export declare function resolveExitOutcome(options: { runTimeoutHit: boolean; inactivityTimeoutHit: boolean; aborted: boolean; code: number | null; signal: string | null; }): { exitReason: import('./run-handle.js').RunResult['exitReason']; terminalCode: ErrorCode | null; emitCrash: boolean; };