/** * 结构化日志。人类可读格式输出,按级别区分。 * * 单 bot:2026-03-31 18:08:46 [INFO] [pipeline] session recovered chatId=c1 * 多 bot:2026-03-31 18:08:46 [INFO] [NiuBot/pipeline] session recovered chatId=c1 */ type LogLevel = "debug" | "info" | "warn" | "error"; export declare function setLogLevel(level: LogLevel): void; /** 创建 logger。botName 可选,设置后输出 [botName/module] 格式 */ export declare function createLogger(module: string, botName?: string): { debug: (msg: string, data?: Record) => void; info: (msg: string, data?: Record) => void; warn: (msg: string, data?: Record) => void; error: (msg: string, data?: Record) => void; }; export {};