export declare const ExitCode: {
    readonly SUCCESS: 0;
    readonly GENERAL_ERROR: 1;
    readonly INVALID_ARGS: 2;
    readonly AUTH_REQUIRED: 3;
    readonly NETWORK_ERROR: 4;
    readonly AGENT_FAILED: 10;
    /**
     * `--project-name` conflicted with an existing project (NAME_TAKEN in
     * non-interactive modes, where no retry prompt is possible). Dedicated so
     * orchestrators can script a rename + re-run without confusing it with
     * generic agent failures.
     */
    readonly PROJECT_NAME_TAKEN: 11;
    /**
     * Agent-mode invocation needs a decision from the orchestrator (e.g. which
     * environment / project to use) and `--auto-approve` was not set. The
     * wizard emits a `needs_input` NDJSON event with `choices` + `resumeFlags`,
     * then exits with this code so outer agents can surface the question to a
     * human and re-invoke with the chosen flag.
     */
    readonly INPUT_REQUIRED: 12;
    /**
     * The inner agent attempted to write or run a destructive operation but
     * the current invocation didn't grant `allowWrites` / `allowDestructive`.
     * The PreToolUse write-gate (see `mode-config.ts: evaluateWriteGate`)
     * denies the tool call, the wizard surfaces the deny reason, and exits
     * here so outer agents can re-invoke with `--yes` or `--force`.
     */
    readonly WRITE_REFUSED: 13;
    /**
     * Internal wizard bug — an uncaught exception, assertion violation, or
     * other unexpected error in the wizard's own code (NOT in the inner
     * Claude agent's behaviour). Distinct from `AGENT_FAILED=10` (the
     * agent run terminated with a real failure, e.g. permission denial,
     * network blip, model overload) and `GENERAL_ERROR=1` (catch-all
     * "something went wrong"). Orchestrators should treat 20 as a wizard
     * defect worth filing a bug report for; 10 is usually
     * environmental/recoverable.
     */
    readonly INTERNAL_ERROR: 20;
    readonly USER_CANCELLED: 130;
};
export type ExitCode = (typeof ExitCode)[keyof typeof ExitCode];
