/** * Represents the severity level of a log message. * * - `debug` - Diagnostic messages * - `info` - Informational messages * - `error` - Error or warnings messages */ export type ChatLogLevel = 'debug' | 'info' | 'error'; /** Longer interface to be used by {@link ChatRoom}. */ export interface ChatLogger { /** * Logging function used for {@link ChatLogLevel | `'debug'` } level messages. * * @param message - Message to log * @param args - Variable list of arguments to be passed to the logger */ debug(message: string, ...args: unknown[]): void; /** * Logging function used for {@link ChatLogLevel | `'info'` } level messages. * * @param message - Message to log * @param args - Variable list of arguments to be passed to the logger */ info(message: string, ...args: unknown[]): void; /** * Logging function used for {@link ChatLogLevel | `'error'` } level messages. * * @param message - Message to log * @param args - Variable list of arguments to be passed to the logger */ error(message: string, ...args: unknown[]): void; } /** * Default {@link ChatLogger } implementation for {@link ChatRoom }. That passes log messages to the * {@link https://developer.mozilla.org/en-US/docs/Web/API/console | `console` } object. */ export declare class ConsoleLogger implements ChatLogger { debug(message: string, ...args: unknown[]): void; info(message: string, ...args: unknown[]): void; error(message: string, ...args: unknown[]): void; } //# sourceMappingURL=logging.d.ts.map