/** * ANSI formatting helpers and human-readable output formatters. * No external dependencies — uses ANSI escape codes directly. */ /** * Convert data to TOON format for LLM-optimized output (--toon mode). * Uses @toon-format/toon for 40-60% token savings. * Pre-parses JSON-encoded strings so they're included as real objects. */ export declare function toonify(data: unknown, fields?: string[]): string; /** * Select dot-path fields while preserving enough of the original structure for * agents to reason about where values came from. * * Examples: * - items.id * - items.text * - resolvedEntities.contacts.displayName * - items[].metadata.chatId (same as items.metadata.chatId) */ export declare function selectFields(data: unknown, fields: string[]): unknown; export declare const dim: (s: string) => string; export declare const bold: (s: string) => string; export declare const green: (s: string) => string; export declare const red: (s: string) => string; export declare const yellow: (s: string) => string; export declare const cyan: (s: string) => string; export declare const magenta: (s: string) => string; export declare const white: (s: string) => string; export declare function formatSearchResults(results: Array<{ id: string; text: string; sourceType: string; connectorType: string; eventTime: string; score?: number; weights?: { final: number; }; }>): string; export declare function formatMemory(m: { id: string; text: string; sourceType: string; connectorType: string; eventTime: string; importance: number | null; factuality: string | null; embeddingStatus: string; entities: string | null; }): string; export declare function formatMemoryList(items: Array<{ id: string; text: string; sourceType: string; connectorType: string; eventTime: string; }>, total: number): string; export declare function formatContact(c: { id: string; displayName: string; identifiers: Array<{ identifierType: string; identifierValue: string; }>; memoryCount?: number; }): string; export declare function formatContactList(items: Array<{ id: string; displayName: string; identifiers: Array<{ identifierType: string; identifierValue: string; }>; }>, total: number): string; export declare function formatJob(j: { id: string; connector: string; accountIdentifier: string | null; status: string; progress: number | null; total: number | null; startedAt: string | null; completedAt: string | null; error: string | null; }): string; export declare function formatJobList(jobs: Array<{ id: string; connector: string; accountIdentifier: string | null; status: string; progress: number | null; total: number | null; startedAt: string | null; completedAt: string | null; error: string | null; }>): string; export declare function formatStats(stats: { total: number; bySource: Record; byConnector: Record; byFactuality: Record; }): string; export declare function formatAccounts(accounts: Array<{ id: string; type: string; identifier: string; status: string; lastSync: string | null; memoriesIngested: number | null; }>): string; export declare function formatVersion(v: { buildTime: string; uptime: number; version?: string; gitHash?: string; }): string; export declare function formatAgentAnswer(data: any): string; export declare function formatAgentContext(data: any): string; export declare function formatMemoryBanks(banks: Array<{ id: string; name: string; memoryCount?: number; }>): string; export declare function formatStatus(stats: { total: number; bySource: Record; }, queues: Record, accounts: Array<{ id: string; type: string; identifier: string; status: string; lastSync: string | null; memoriesIngested: number | null; }>): string;