import { Reason } from './types.js'; /** * Determines the error reason based on what was thrown. * * @param error - The value that was thrown. * @returns The appropriate Reason enum value. */ export declare function getReason(error: unknown): Reason; /** * Gets an Error instance from a thrown value. * * @param error - The value that was thrown. * @returns An Error instance (original if already Error, wrapped otherwise). */ export declare function getError(error: unknown): Error;