/** * Output formatting utilities for the adapters CLI. * * Supports human-readable tables/text and JSON output modes. * Color is supported via ANSI codes, gated by --no-color / NO_COLOR / TTY detection. */ export declare function setColorEnabled(enabled: boolean): void; export declare const color: { bold: (text: string) => string; dim: (text: string) => string; red: (text: string) => string; green: (text: string) => string; yellow: (text: string) => string; cyan: (text: string) => string; }; /** * Print a table in human-readable format. */ export declare function printTable(headers: string[], rows: string[][]): void; /** * Print key-value pairs in human-readable format. */ export declare function printKeyValue(pairs: [string, string][]): void; /** * Convert a typed object (possibly with a sealed index signature) into a plain * `Record` suitable for serialization / column-extraction * helpers. Uses JSON round-trip so it drops undefined and functions and loses * prototype — appropriate for the CLI's read-only render paths. */ export declare function toPlain(value: T): Record; export declare function toPlainArray(values: readonly T[]): Record[]; /** * Print JSON output. */ export declare function printJson(data: unknown): void; /** * Print a JSON-wrapped success response. */ export declare function printJsonOk(data: unknown): void; /** * Print a JSON-wrapped error response. */ export declare function printJsonError(code: string, message: string, recoverable?: boolean): void; /** * Print an error message to stderr. */ export declare function printError(message: string): void; /** * Print a warning message to stderr. */ export declare function printWarning(message: string): void; /** * Print an info message to stderr. */ export declare function printInfo(message: string): void;