import { ErrorLike } from '../types/index.js'; /** * Safely normalize any thrown value to an Error-like object * * JavaScript allows throwing any value (strings, numbers, objects, etc.) * This utility ensures we always have a consistent error structure to work with. * * @param error - Any value that was thrown * @returns Normalized error object with message, name, and optional stack */ export declare function toError(error: unknown): ErrorLike; /** * Extract error message safely from any thrown value * * @param error - Any value that was thrown * @returns Error message as string */ export declare function getErrorMessage(error: unknown): string; //# sourceMappingURL=errors.d.ts.map