/** * Logger utility for the MCP server * Outputs structured logs to stderr without interfering with MCP's stdout transport. */ export declare enum LogLevel { DEBUG = "debug", INFO = "info", NOTICE = "notice", WARNING = "warning", WARN = "warning",// Alias for WARNING ERROR = "error", CRITICAL = "critical", ALERT = "alert", EMERGENCY = "emergency" } /** * Read a configured minimum level (`FLUENT_MCP_LOG_LEVEL`): case-insensitive, * with `warn` accepted for `warning`. * @param raw The configured value * @returns The level, or undefined when the value names no level */ export declare function parseLogLevel(raw: string | undefined): LogLevel | undefined; /** * Logger class that writes structured lines to stderr. */ export declare class Logger { private readonly logLevel; constructor(); /** * Determine if a log level should be output based on the current log level */ private shouldLog; /** * Format a log entry as JSON */ private formatLogEntry; /** * Write directly to stderr (bypasses JSON formatting) */ private writeToStderr; /** * Write a structured log entry to stderr. */ private writeLogEntry; /** * Render a log entry as a single human-readable stderr line. */ private formatForStderr; /** * Core logging method - logs a message at the specified level * All level-specific methods delegate to this */ private logAtLevel; /** * Log a message at the debug level */ debug(message: string, context?: Record): void; /** * Log a message at the info level */ info(message: string, context?: Record): void; /** * Log a message at the notice level */ notice(message: string, context?: Record): void; /** * Log a message at the warn level */ warn(message: string, context?: Record): void; /** * Log a message at the error level, with optional error object for stack trace */ error(message: string, error?: Error, context?: Record): void; } declare const logger: Logger; export default logger; //# sourceMappingURL=logger.d.ts.map