import type { LogEntry } from "@skaile/workspaces/types"; import { type OutputStream } from "../stream-health.js"; import type { LogSink } from "./types.js"; export type StdoutFormat = "pretty" | "json"; /** Which standard stream the sink writes to. */ export type StdoutStream = "stdout" | "stderr"; export type { OutputStream }; export interface StdoutSinkOptions { format?: StdoutFormat; /** * Standard stream to write to. Default: `"stdout"`. Set to `"stderr"` for * processes whose stdout is a reserved channel — e.g. a stdio MCP server, * where stdout carries JSON-RPC and any log line would corrupt the protocol. * An explicit stream object may be passed instead; used by tests. */ stream?: StdoutStream | OutputStream; } export declare class StdoutSink implements LogSink { private format; private stream; constructor(opts?: StdoutSinkOptions); write(entry: LogEntry): void; writeBatch(entries: LogEntry[]): void; close(): void; /** False once the far end is gone; the sink then drops entries silently. */ private writable; private render; } //# sourceMappingURL=stdout-sink.d.ts.map