export type OutputFormat = 'terminal' | 'md'; export declare function stripAnsi(value: string): string; export declare function escapeMdCell(value: string): string; export declare function visWidth(value: string): number; export declare function padColumn(value: string, width: number, align?: 'left' | 'right', trailingGap?: boolean): string; export declare function truncateToWidth(value: string, maxWidth: number): string; export declare function heading(text: string, level: number, format: OutputFormat): string; export declare function formatMs(ms: number): string; export declare function timeAgo(dateStr: string): string; export declare function formatFrequency(minutes: number | undefined | null): string; export declare function formatCheckType(checkType: string): string; export declare function formatDate(dateStr: string | null | undefined, format: OutputFormat): string; export declare function resolveResultStatus(result: { hasErrors: boolean; hasFailures: boolean; isDegraded: boolean | null; }, format: OutputFormat): string; export declare function truncateError(msg: string, maxLen: number): string; export interface DetailField { label: string; value: (item: T, format: OutputFormat) => string | null; } export interface ColumnDef { header: string; width?: number; align?: 'left' | 'right'; value: (item: T, format: OutputFormat) => string; } export declare function renderDetailFields(title: string, fields: DetailField[], item: T, format: OutputFormat): string; export declare function renderTable(columns: ColumnDef[], rows: T[], format: OutputFormat): string;