/**
 * Exit Codes Module
 *
 * Standardized exit codes for CLI operations.
 * Following common conventions for shell scripting and CI/CD integration.
 */
/**
 * Standard exit codes
 */
export declare const EXIT_CODES: {
    /** Successful execution */
    readonly SUCCESS: 0;
    /** General error */
    readonly GENERAL_ERROR: 1;
    /** Invalid command line usage */
    readonly INVALID_USAGE: 2;
    /** API error (rate limit, server error, etc.) */
    readonly API_ERROR: 3;
    /** Authentication error (invalid/missing API key) */
    readonly AUTHENTICATION_ERROR: 4;
    /** Operation timeout */
    readonly TIMEOUT: 5;
    /** File not found */
    readonly FILE_NOT_FOUND: 6;
    /** Permission denied */
    readonly PERMISSION_DENIED: 7;
    /** Configuration error */
    readonly CONFIG_ERROR: 8;
    /** Network error */
    readonly NETWORK_ERROR: 9;
    /** Resource exhausted (memory, disk, etc.) */
    readonly RESOURCE_EXHAUSTED: 10;
    /** Invalid input data */
    readonly INVALID_INPUT: 11;
    /** Operation cancelled by user */
    readonly USER_CANCELLED: 130;
    /** Operation aborted due to cost limit */
    readonly COST_LIMIT_EXCEEDED: 12;
    /** Tool execution failed */
    readonly TOOL_EXECUTION_FAILED: 13;
    /** MCP server error */
    readonly MCP_ERROR: 14;
    /** Model not available */
    readonly MODEL_NOT_AVAILABLE: 15;
    /** Security violation (sandbox, path traversal) */
    readonly SECURITY_ERROR: 16;
    /** Input validation error */
    readonly VALIDATION_ERROR: 17;
    /** Session error */
    readonly SESSION_ERROR: 18;
    /** Checkpoint error */
    readonly CHECKPOINT_ERROR: 19;
    /** Resource error (memory, CPU) */
    readonly RESOURCE_ERROR: 20;
    /** Dependency error */
    readonly DEPENDENCY_ERROR: 21;
    /** Context error (too large, etc.) */
    readonly CONTEXT_ERROR: 22;
};
/**
 * Exit code type
 */
export type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
/**
 * Exit code descriptions for error messages
 */
export declare const EXIT_CODE_DESCRIPTIONS: Record<ExitCode, string>;
/**
 * Exit with a specific code and optional message
 */
export declare function exitWithCode(code: ExitCode, message?: string): never;
/**
 * Get description for an exit code
 */
export declare function getExitCodeDescription(code: number): string;
/**
 * Map error types to exit codes
 */
export declare function errorToExitCode(error: Error): ExitCode;
/**
 * Exit handler that maps errors to appropriate exit codes
 */
export declare function handleFatalError(error: Error): never;
export default EXIT_CODES;
