import { type ErrorWithMetadata } from '../errors.js'; import type { BetterErrorData } from '../errors-data.js'; /** Coalesce any throw variable to an Error instance. */ export declare function createSafeError(err: any): Error; export declare function normalizeLF(code: string): string; /** * Takes any error-like object and returns a standardized Error + metadata object. * Useful for consistent reporting regardless of where the error surfaced from. */ export declare function collectErrorMetadata(e: any, rootFolder?: URL | undefined): ErrorWithMetadata; export declare function getDocsForError(err: ErrorWithMetadata, errorsData: Record, docsBaseUrl: string): string | undefined; /** * Render a subset of Markdown to HTML or a CLI output */ export declare function renderErrorMarkdown(markdown: string, target: 'html' | 'cli'): string; //# sourceMappingURL=utils.d.ts.map