import type { Diagnostic } from '@atlaspack/diagnostic'; import type { PluginOptions } from '@atlaspack/types-internal'; export type FormattedCodeFrame = { location: string; code: string; }; export type AnsiDiagnosticResult = { message: string; stack: string; /** A formatted string containing all code frames, including their file locations. */ codeframe: string; /** A list of code frames with highlighted code and file locations separately. */ frames: Array; hints: Array; documentation: string; }; export declare function prettyDiagnosticSync(diagnostic: Diagnostic, options?: PluginOptions, terminalWidth?: number, format?: 'ansi' | 'html'): AnsiDiagnosticResult; export default function prettyDiagnostic(diagnostic: Diagnostic, options?: PluginOptions, terminalWidth?: number, format?: 'ansi' | 'html'): Promise;