/** * Output Formatting Utilities * * Provides consistent output formatting for tables, lists, and structured data. */ /** * Print a labeled value * * @example * printField('Project', 'my-project'); * // Output: Project: my-project */ export declare function printField(label: string, value: string | null | undefined): void; /** * Print a section header * * @example * printHeader('Configuration'); * // Output: * // Configuration * // ───────────── */ export declare function printHeader(title: string): void; /** * Print a blank line */ export declare function printBlank(): void; /** * Print a list of items * * @example * printList(['Item 1', 'Item 2', 'Item 3']); * // Output: * // • Item 1 * // • Item 2 * // • Item 3 */ export declare function printList(items: string[], bullet?: string): void; /** * Print a success message * * @example * printSuccess('Configuration saved'); * // Output: ✓ Configuration saved */ export declare function printSuccess(message: string): void; /** * Print an error message * * @example * printError('Failed to connect'); * // Output: ✗ Failed to connect */ export declare function printError(message: string): void; /** * Print a warning message * * @example * printWarning('API key will expire soon'); * // Output: ⚠ API key will expire soon */ export declare function printWarning(message: string): void; /** * Print an info message * * @example * printInfo('Fetching data...'); * // Output: ℹ Fetching data... */ export declare function printInfo(message: string): void; /** * Print a key-value table * * @example * printTable({ * 'Project': 'my-project', * 'Specification': 'v2.0', * 'Status': 'active', * }); */ export declare function printTable(data: Record): void; /** * Print JSON output (for --format json) * * @example * printJson({ project: 'my-project', status: 'active' }); */ export declare function printJson(data: unknown): void; /** * Print a command hint * * @example * printHint('specforge init', 'Initialize project'); * // Output: → Run `specforge init` to initialize project */ export declare function printHint(command: string, description: string): void; /** * Print a URL with description * * @example * printLink('https://specforge.com', 'Visit documentation'); * // Output: → Visit documentation: https://specforge.com */ export declare function printLink(url: string, description: string): void; /** * Format bytes to human readable size */ export declare function formatBytes(bytes: number): string; /** * Format duration in milliseconds to human readable */ export declare function formatDuration(ms: number): string; /** * Truncate string with ellipsis */ export declare function truncate(str: string, maxLength: number): string; //# sourceMappingURL=output.d.ts.map