/** * Structured Logger for Antigravity Plugin * * Logging behavior: * - debug controls file logs only (via debug.ts) * - debug_tui controls TUI log panel only * - either sink can be enabled independently * - OPENCODE_ANTIGRAVITY_CONSOLE_LOG=1 → console output (independent of debug flags) */ import type { PluginClient } from "./types"; export interface Logger { debug(message: string, extra?: Record): void; info(message: string, extra?: Record): void; warn(message: string, extra?: Record): void; error(message: string, extra?: Record): void; } /** * Initialize the logger with the plugin client. * Must be called during plugin initialization to enable TUI logging. */ export declare function initLogger(client: PluginClient): void; /** * Create a logger instance for a specific module. * * @param module - The module name (e.g., "refresh-queue", "transform.claude") * @returns Logger instance with debug, info, warn, error methods * * @example * ```typescript * const log = createLogger("refresh-queue"); * log.debug("Checking tokens", { count: 5 }); * log.warn("Token expired", { accountIndex: 0 }); * ``` */ export declare function createLogger(module: string): Logger; //# sourceMappingURL=logger.d.ts.map