/** * Logging for a process that speaks JSON-RPC on stdout. * * Every message goes to stderr. Nothing in this project may ever call * console.log: a single stray line on stdout corrupts the MCP framing and the * client drops the session, which was the single most reported bug in 1.2.x. */ export type LogLevel = "debug" | "info" | "warn" | "error" | "silent"; export declare function setLogLevel(level: LogLevel): void; export declare function getLogLevel(): LogLevel; export interface Logger { debug(...args: unknown[]): void; info(...args: unknown[]): void; warn(...args: unknown[]): void; error(...args: unknown[]): void; child(scope: string): Logger; } export declare function createLogger(scope?: string): Logger; export declare const logger: Logger;