/**
 * Readable text for any thrown value. Non-`Error` throws (plain objects,
 * strings, cloned DOMExceptions) have no `stack` to print.
 */
export declare function formatThrown(error: unknown): string;
/**
 * Converts a thrown value into a native `Error` before it leaves a collection
 * worker. Structured cloning keeps native errors' name, message and stack, but
 * turns anything else (e.g. jsdom's DOMException) into `{}`.
 */
export declare function toCloneableError(error: unknown): Error;
/**
 * Message for an error crashing a collection worker (uncaught exception or
 * unhandled rejection), attributed to the story file being collected.
 */
export declare function formatCollectCrash(error: unknown, storyPath: string | undefined): string;
//# sourceMappingURL=errors.d.ts.map