import type { Logger } from '@pikku/core/services'; import { LogLevel } from '@pikku/core/services'; import type { PikkuChannel } from '@pikku/core/channel'; import type { ErrorCode, CodedDiagnostic, DiagnosticSeverity } from '@pikku/inspector'; /** * Log message structure sent through the channel */ export interface ForwardedLogMessage { message: string; level: 'trace' | 'debug' | 'info' | 'warn' | 'error'; type?: string; } /** * A logger implementation that forwards log messages to a CLI channel * instead of logging to console directly. */ export declare class CLILoggerForwarder implements Logger { private logger; private channel; private level; private silent; constructor(logger: Logger, channel: PikkuChannel); setLevel(level: LogLevel): void; setSilent(silent: boolean): void; isSilent(): boolean; private log; info(messageOrObj: string | Record, ..._meta: any[]): void; error(messageOrObj: string | Record | Error, ..._meta: any[]): void; warn(messageOrObj: string | Record, ..._meta: any[]): void; debug(message: string, ..._meta: any[]): void; trace(message: string, ..._meta: any[]): void; diagnostic({ severity, code, message }: CodedDiagnostic): void; critical(code: ErrorCode, message: string): void; hasCriticalErrors(): boolean; hasBlockingDiagnostics(): boolean; blockingSeverities(): DiagnosticSeverity[]; }