/**
 * Structured JSON logging — all log output is one JSON object per line on stderr.
 * Optionally also writes to a log file (if initLogFile was called).
 * Respects logLevel from config: debug < info < warn < error.
 */
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
export declare function setLogLevel(level: LogLevel): void;
export declare function getLogLevel(): LogLevel;
export declare function log(level: LogLevel, component: string, msg: string, data?: Record<string, unknown>): void;
export declare function logDebug(component: string, msg: string, data?: Record<string, unknown>): void;
export declare function logInfo(component: string, msg: string, data?: Record<string, unknown>): void;
export declare function logWarn(component: string, msg: string, data?: Record<string, unknown>): void;
export declare function logError(component: string, msg: string, data?: Record<string, unknown>): void;
export {};
