/** * stderr-only structured logger. * CRITICAL: Never write to stdout — it's reserved for JSON-RPC in stdio transport. */ type LogLevel = "debug" | "info" | "warn" | "error"; export declare function setLogLevel(level: LogLevel): void; export interface Logger { debug: (msg: string, data?: Record) => void; info: (msg: string, data?: Record) => void; warn: (msg: string, data?: Record) => void; error: (msg: string, data?: Record) => void; } /** * @deprecated Use `AuditEvent` from `../audit/types.js` instead. * Kept for backward compatibility with external consumers. * * The `outcome` union widened to include `"blocked"` for pre-dispatch * elicitation blocks, matching `AuditOutcome` in `../audit/types.js`. This * is a non-breaking, additive change — existing producers writing * `"success"` / `"error"` continue to type-check. */ export interface AuditEntry { operation: string; resource_type: string; resource_id?: string; action?: string; org_id?: string; project_id?: string; outcome: "success" | "error" | "blocked"; error?: string; } /** * @deprecated Use `AuditManager` from `../audit/index.js` instead. * This function writes directly to stderr and does not fan out to * configured audit sinks. Kept for backward compatibility. */ export declare function logAudit(entry: AuditEntry): void; export declare function createLogger(module: string): Logger; export {}; //# sourceMappingURL=logger.d.ts.map