/** `zhin watch` 纯函数(可单测) */ export interface WatchProcessMemory { rss?: number; heapTotal?: number; heapUsed?: number; external?: number; arrayBuffers?: number; } export interface WatchOsMemory { freeMem?: number; totalMem?: number; } export interface WatchSystemInfo { uptime?: number; pid?: number; nodeVersion?: string; platform?: string; runtime?: string; processMemory?: WatchProcessMemory; osMemory?: WatchOsMemory; } export interface WatchStats { uptime?: number; memory?: number; endpoints?: { total?: number; online?: number; }; plugins?: { total?: number; active?: number; }; commands?: number; components?: number; runtime?: string; } export interface WatchEndpointRow { name: string; adapter: string; status: 'online' | 'offline'; } export interface WatchJobRow { id: string; label?: string; enabled: boolean; schedule: string; notify: string; lastStatus?: string; lastError?: string; } export declare function formatUptime(seconds: number | undefined): string; /** 字节 → 人类可读(默认 MB,小于 1MB 用 KB) */ export declare function formatBytes(bytes: number | undefined): string; export declare function parseProcessMemory(raw: Record | undefined): WatchProcessMemory; export declare function systemInfoFromApi(data: Record | undefined): WatchSystemInfo | undefined; export declare function renderMemorySection(system?: WatchSystemInfo): string[]; export declare function formatJobSchedule(schedule: Record | undefined): string; export declare function formatNotifyChannel(notify: Record | undefined): string; export declare function truncateText(text: string | undefined, max?: number): string; export declare function jobRowsFromApi(jobs: unknown[]): WatchJobRow[]; export declare function renderWatchText(options: { baseUrl: string; fetchedAt: Date; stats?: WatchStats; system?: WatchSystemInfo; endpoints?: WatchEndpointRow[]; assistantEnabled?: boolean; eventsActive?: boolean; jobs?: WatchJobRow[]; error?: string; }): string; //# sourceMappingURL=watch-format.d.ts.map