/** * Console Interceptor * * Intercepts console output and routes it to the TUI log display. * Parses request logs to extract metadata for structured display. */ import type { LogMeta, StateUpdater } from "../state.js"; /** * Parse HTTP request log format into structured metadata * * Format: METHOD PATH STATUS DURATIONms [PROJECT:ENV:RELEASE] * Example: GET /api/users 200 45ms myapp:production:v1.0.0 */ export declare function parseRequestLog(msg: string): LogMeta | undefined; /** * Create a console capture function for a specific log level */ export declare function createCapture(level: "info" | "warn" | "error" | "debug", updateState: (updater: StateUpdater) => void, render: () => void): (...args: unknown[]) => void; export interface InterceptOptions { updateState: (updater: StateUpdater) => void; render: () => void; } /** * Intercept all console methods and route to TUI logs * Returns a cleanup function to restore original console */ export declare function interceptConsole(options: InterceptOptions): () => void; //# sourceMappingURL=console-interceptor.d.ts.map