/** * Log viewer for `email-mcp logs` (and `email-mcp server logs`). Reads the * daemon log, with optional level/substring filtering, colorization, and a * `--follow` live tail. Pure helpers (filter, colorize) are unit-tested; the * orchestrator does the I/O. * * Daemon log lines look like: * 2026-10-10T08:00:00.000Z INFO [imap] Connected ... */ /** Severity order, low → high. `--level warn` keeps warn and error. */ export declare const LOG_LEVELS: readonly ['debug', 'info', 'warn', 'error']; export type LogLevel = (typeof LOG_LEVELS)[number]; interface FilterOpts { level?: string; grep?: string; } /** * Filter log text by a severity threshold and/or a case-insensitive substring. * Continuation lines (no level token — stack traces, wrapped messages) are kept * when the line before them was kept, so multi-line entries stay intact. */ export declare function filterLogLines(text: string, opts: FilterOpts): string; /** Colorize a line by its level (ERROR red, WARN yellow, DEBUG dim). */ export declare function colorizeLogLine(line: string, opts: { color: boolean; }): string; /** * `email-mcp logs [-n N] [-f] [--level L] [--grep TEXT]` */ export default function runLogs(argv: string[]): Promise; export {}; //# sourceMappingURL=logs.d.ts.map