/**
 * Normalizes an unknown thrown value into an Error. Non-Error objects become
 * the `cause` and have their enumerable fields copied so structured details
 * (codes, statuses) survive the coercion.
 */
declare function toErrorObject(value: unknown, fallbackMessage: string): Error;
/** Reads Error messages unchanged and stringifies every other value. */
declare function coerceErrorMessage(value: unknown): string;
declare function extractErrorCode(err: unknown): string | undefined;
declare function readErrorName(err: unknown): string;
declare function collectErrorGraphCandidates(err: unknown, resolveNested?: (current: Record<string, unknown>) => Iterable<unknown>): unknown[];
export { toErrorObject as a, readErrorName as i, collectErrorGraphCandidates as n, extractErrorCode as r, coerceErrorMessage as t };