/** * TUI-safe logging for pi-agent-flow. * * During flow execution, the TUI redraws the entire screen on every frame. * Any console.warn/console.error output to stderr briefly flashes on-screen * before being overwritten, causing the "text appears then disappears" glitch. * * This module provides a `logWarn` / `logError` pair that: * - Writes to a file when the TUI is active (env PI_TUI_MODE=1 or when * the process is a child flow at depth > 0). * - Falls back to console.warn/console.error when not in a TUI context * (e.g. test runners, direct CLI invocations). * * The log file path is `PI_FLOW_LOG_FILE` or `${TMPDIR}/pi-agent-flow.log` * by default. Set `PI_FLOW_LOG_FILE=/dev/null` to suppress entirely. */ /** * Log a warning message. When TUI is active, writes to the log file * instead of stderr to avoid on-screen flashing. */ export declare function logWarn(message: string): void; /** * Log an error message. When TUI is active, writes to the log file * instead of stderr to avoid on-screen flashing. */ export declare function logError(message: string): void; //# sourceMappingURL=log.d.ts.map