/** * Stdout discipline for machine-readable (`--json`) command modes. * * Surfaced OpenLore subcommands are spawned by OpenSpec as child processes; a * consumer parsing stdout must never get log noise mixed in. The logger routes * info/success/discovery/warning to stdout via console.log, so in `--json` mode any * such line would corrupt the JSON. These helpers redirect console.log/info/warn to * stderr for the duration of the work, leaving process.stdout.write (used to emit * the JSON) clean. The MCP server applies the same discipline; logger.error already * uses stderr. */ /** * Redirect console.log/info/warn to stderr. Returns a restore function — call it in * a `finally` so the originals are always reinstated, even on error. */ export declare function redirectConsoleToStderr(): () => void; /** Run `fn` with console.log/info/warn redirected to stderr, then restore them. */ export declare function withQuietStdout(fn: () => Promise): Promise; //# sourceMappingURL=quiet-stdout.d.ts.map