import { type ChildProcess } from "node:child_process";
/** One `claude auth *` invocation for a CLI-store account. */
export type ClaudeCliRun = {
    /** The executable the turn path resolves, so sign-in and turns use the same binary. */
    readonly executable: string;
    readonly configDir: string;
    readonly parentEnv?: NodeJS.ProcessEnv;
};
export declare function spawnClaudeCli(run: ClaudeCliRun, args: readonly string[], browser?: string): ChildProcess;
/** SIGTERM now, SIGKILL after `graceMs` if the child is still running. */
export declare function stopClaudeCli(child: ChildProcess, graceMs: number): void;
export type ClaudeCliExit = {
    readonly exitCode: number | null;
    readonly stdout: string;
};
/**
 * Runs a short command (`auth status`, `auth logout`) to exit, killing it at the deadline or when `signal` aborts
 * (both answer `undefined`). Never logs its output.
 */
export declare function runClaudeCliToExit(run: ClaudeCliRun, args: readonly string[], timeoutMs?: number, signal?: AbortSignal): Promise<ClaudeCliExit | undefined>;
//# sourceMappingURL=claude-cli-process.d.ts.map