/** * Internal helper that lets shared modules call simple `log/warn/error` * functions without threading a {@link Logger} through every signature. * * The host (OpenCode plugin, Pi plugin) calls {@link setActiveLogger} once at * startup before constructing any {@link BridgePool}. Internal callers use * {@link log}/{@link warn}/{@link error} which forward to the active logger. * * If no logger has been set, calls fall back to `console.error` so we never * silently drop diagnostics. */ import type { Logger, LogMeta } from "./logger.js"; export declare function setActiveLogger(logger: Logger): void; export declare function getActiveLogger(): Logger | undefined; export declare function getLogFilePath(): string | undefined; export declare function log(message: string, meta?: LogMeta): void; export declare function warn(message: string, meta?: LogMeta): void; export declare function error(message: string, meta?: LogMeta): void; //# sourceMappingURL=active-logger.d.ts.map