import type { SpawnOptions, SpawnedProcess } from '@anthropic-ai/claude-agent-sdk'; /** * Custom spawn function for the Claude Agent SDK. * * Pass this as `options.spawnClaudeCodeProcess` in the `query()` call. * * Features: * - Consistent spawn configuration (windowsHide, stderr ignored) * - Synchronous retry on transient OS-level spawn errors (ENOTCONN, EAGAIN, etc.) * - Single hook point for all Claude CLI child processes * * Note: The SDK requires this function to be synchronous. Async spawn failures * (e.g. process exits immediately with ENOTCONN) are handled by the outer * `withRetry` wrapper in processMessage which retries the entire query. */ export declare function spawnWithRetry(options: SpawnOptions): SpawnedProcess;