/** * CLI Output Formatter * * Shared formatting utilities for beautiful CLI output. * Used by photon CLI, lumina, ncp, and other projects. * * Structural formats: * - primitive: Single values (string, number, boolean) * - table: Flat objects or arrays of flat objects (bordered tables) * - tree: Nested/hierarchical structures (indented) * - list: Arrays of primitives (bullet points) * - none: No data to display * * Content formats: * - json: Pretty-printed JSON * - markdown: Rendered markdown * - yaml: YAML content * - code / code:: Syntax highlighted code */ /** * Format and output data with optional format hint */ export declare function formatOutput(data: any, hint?: string): void; /** * Detect format type from data structure */ export declare function detectFormat(data: any): string; export declare function renderPrimitive(value: any): void; export declare function renderList(data: any[]): void; export declare function renderTable(data: any): void; export declare function renderTree(data: any, indent?: string): void; /** * Render data as a bordered card * Great for single objects with mixed content types */ export declare function renderCard(data: any): void; /** * Render data as tabbed sections * Each top-level key becomes a tab */ export declare function renderTabs(data: any): void; /** * Render data as collapsible accordion sections * Similar to tabs but with visual collapse indicators */ export declare function renderAccordion(data: any): void; export declare function renderNone(): void; export declare function formatKey(key: string): string; export declare function formatValue(value: any): string | number | boolean; export declare const STATUS: { readonly OK: "ok"; readonly UPDATE: "update"; readonly WARN: "warn"; readonly ERROR: "!"; readonly OFF: "off"; readonly UNKNOWN: "?"; }; export declare function formatToMimeType(format: string): string | undefined; export declare function printSuccess(message: string): void; export declare function printError(message: string): void; export declare function printInfo(message: string): void; export declare function printWarning(message: string): void; export declare function printHeader(title: string): void; //# sourceMappingURL=cli-formatter.d.ts.map