import type { Nullable } from '../types/index.js'; type LaxPromise = Promise | T | void; export declare function catchPromise(promise: LaxPromise, errorCb?: (err: any) => void): void; export declare function wrapAsync(fn: Nullable<(...args: TArgs) => LaxPromise>, errorCb?: (err: any) => void): (...args: TArgs) => void; /** * Formats an unknown caught value into a human-readable string. * * Useful at presentation boundaries where a display string is needed. * Prefer keeping the raw error for programmatic handling (instanceof checks, .cause, etc.). */ export declare function formatError(err: unknown): string; export {};