export type ErrorSeverity = 'critical' | 'high' | 'medium' | 'low'; export type ErrorLayer = 'ingest' | 'graph' | 'llm' | 'interface' | 'config' | 'privacy'; export declare class CortexError extends Error { readonly code: string; readonly severity: ErrorSeverity; readonly layer: ErrorLayer; readonly context?: Record | undefined; readonly recoveryAction?: string | undefined; readonly retryable: boolean; readonly httpStatus?: number | undefined; readonly name = "CortexError"; constructor(code: string, severity: ErrorSeverity, layer: ErrorLayer, message: string, context?: Record | undefined, recoveryAction?: string | undefined, retryable?: boolean, httpStatus?: number | undefined); } export declare const INGEST_PARSE_FAILED = "INGEST_PARSE_FAILED"; export declare const INGEST_FILE_TOO_LARGE = "INGEST_FILE_TOO_LARGE"; export declare const INGEST_WATCHER_ERROR = "INGEST_WATCHER_ERROR"; export declare const INGEST_PERMISSION_DENIED = "INGEST_PERMISSION_DENIED"; export declare const INGEST_UNSUPPORTED_TYPE = "INGEST_UNSUPPORTED_TYPE"; export declare const INGEST_ENCODING_ERROR = "INGEST_ENCODING_ERROR"; export declare const INGEST_TIMEOUT = "INGEST_TIMEOUT"; export declare const LLM_PROVIDER_UNAVAILABLE = "LLM_PROVIDER_UNAVAILABLE"; export declare const LLM_EXTRACTION_FAILED = "LLM_EXTRACTION_FAILED"; export declare const LLM_CONTEXT_OVERFLOW = "LLM_CONTEXT_OVERFLOW"; export declare const LLM_RATE_LIMITED = "LLM_RATE_LIMITED"; export declare const LLM_BUDGET_EXHAUSTED = "LLM_BUDGET_EXHAUSTED"; export declare const LLM_AUTH_FAILED = "LLM_AUTH_FAILED"; export declare const LLM_MODEL_NOT_FOUND = "LLM_MODEL_NOT_FOUND"; export declare const LLM_TIMEOUT = "LLM_TIMEOUT"; export declare const GRAPH_DB_ERROR = "GRAPH_DB_ERROR"; export declare const GRAPH_ENTITY_NOT_FOUND = "GRAPH_ENTITY_NOT_FOUND"; export declare const GRAPH_RELATIONSHIP_INVALID = "GRAPH_RELATIONSHIP_INVALID"; export declare const GRAPH_VECTOR_ERROR = "GRAPH_VECTOR_ERROR"; export declare const GRAPH_MERGE_CONFLICT = "GRAPH_MERGE_CONFLICT"; export declare const GRAPH_INTEGRITY_ERROR = "GRAPH_INTEGRITY_ERROR"; export declare const PRIVACY_VIOLATION = "PRIVACY_VIOLATION"; export declare const PRIVACY_SECRET_DETECTED = "PRIVACY_SECRET_DETECTED"; export declare const CONFIG_INVALID = "CONFIG_INVALID"; export declare const CONFIG_MISSING = "CONFIG_MISSING"; export declare const INTERFACE_PORT_IN_USE = "INTERFACE_PORT_IN_USE"; export declare const SERVER_AUTH_REQUIRED = "SERVER_AUTH_REQUIRED"; export declare const SERVER_AUTH_INVALID = "SERVER_AUTH_INVALID"; export declare const EXIT_CODES: { readonly SUCCESS: 0; readonly GENERAL_ERROR: 1; readonly INVALID_ARGUMENTS: 2; readonly CONFIG_ERROR: 3; readonly LLM_UNAVAILABLE: 4; readonly BUDGET_EXHAUSTED: 5; }; export interface RetryConfig { maxRetries: number; baseDelayMs?: number; maxDelayMs?: number; backoffMultiplier?: number; jitterMs?: number; } export declare const RETRY_CONFIGS: Record; //# sourceMappingURL=cortex-error.d.ts.map