/**
 * Resilient execFile wrapper — retries on transient spawn errors.
 *
 * On Windows, `child_process.execFile` can throw synchronous ENOTCONN errors
 * during socket/pipe creation for child process stdio when the system is under
 * file-descriptor pressure. This error bypasses promise rejection chains and
 * surfaces as an uncaught exception, crashing the gateway.
 *
 * This module provides `execFileSafe` which catches these transient errors and
 * retries with a brief delay, converting what would be a server crash into a
 * recoverable hiccup.
 */
import { type ExecFileOptions } from "node:child_process";
/**
 * Execute a file with retry logic for transient spawn errors.
 * API-compatible with `promisify(execFile)`.
 */
export declare function execFileSafe(file: string, args: readonly string[], options?: ExecFileOptions & {
    maxBuffer?: number;
}): Promise<{
    stdout: string;
    stderr: string;
}>;
//# sourceMappingURL=exec-file-safe.d.ts.map