astro-ghostcms/.pnpm-store/v3/files/94/c2ac4041108270a02f5b855eba4...

12 lines
572 B
Plaintext

import { type ErrorWithMetadata } from '../errors.js';
/**
* 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): string | undefined;
/**
* Render a subset of Markdown to HTML or a CLI output
*/
export declare function renderErrorMarkdown(markdown: string, target: 'html' | 'cli'): string;