export type DiagnosticSeverity = 'Error' | 'Warning'; /** * Text slots follow the five-part error message model: * what happened, reassurance, why it happened, how to fix it, and a way out. */ export type DiagnosticMessageInput = { source?: string; severity?: DiagnosticSeverity; whatHappened: string; reassurance?: string; why?: string; fix?: string; wayOut?: string; details?: string | string[]; docsUrl?: string; }; export declare function formatDiagnosticErrorDetails(error: unknown): string | undefined; export declare function createDiagnosticMessage({ source, severity, whatHappened, reassurance, why, fix, wayOut, details, docsUrl, }: DiagnosticMessageInput): string;