/** * Error handling utilities and message templates * * Consolidates error utilities and centralized error messages * for consistent error handling across the application. */ import type { ErrorGuidance } from '../types/index.js'; /** * Centralized Error Messages * * Provides consistent error message templates across the application. * Uses template functions for parameterized messages. */ export declare const ERROR_MESSAGES: { readonly TOOL_NOT_FOUND: (name: string) => string; readonly VALIDATION_FAILED: (issues: string) => string; readonly POLICY_BLOCKED: (rules: string[]) => string; readonly POLICY_VALIDATION_FAILED: (issues: string) => string; readonly POLICY_LOAD_FAILED: (error: string) => string; readonly DOCKER_OPERATION_FAILED: (operation: string, error: string) => string; readonly K8S_OPERATION_FAILED: (operation: string, error: string) => string; readonly K8S_APPLY_FAILED: (kind: string, name: string, error: string) => string; readonly OPERATION_FAILED: (operation: string, error: string) => string; readonly RESOURCE_NOT_FOUND: (type: string, id: string) => string; }; /** * Safely extracts error message from unknown error types. * Invariant: Always returns a string message */ export declare function extractErrorMessage(error: unknown): string; /** * Create error guidance with context */ export declare function createErrorGuidance(message: string, hint?: string, resolution?: string, details?: Record): ErrorGuidance; //# sourceMappingURL=errors.d.ts.map