import { Queue } from './queue.js'; /** * The Logs class provides logging functionality with different modes of operation. * It supports immediate logging as well as deferred logging via a queue. */ export declare class Logs { /** Identifier for the logger instance */ name: string; /** Queue to hold log entries in 'OFFLINE' mode */ q: Queue; /** Function to be executed when an error is logged */ onError: (...args: any[]) => void; /** Function to be executed when a log entry is printed */ onPrint: (...args: any[]) => void; /** Operating mode ('OFFLINE' or 'ASAP') */ mode: 'OFFLINE' | 'ASAP'; /** * Initializes the logger with a name and optional custom error and print functions. * @param name - The name of the logger * @param options - Optional custom functions for handling errors and print operations */ constructor(name: string, options?: { error?: (...args: any[]) => void; print?: (...args: any[]) => void; }); /** * Switches the logger to 'ASAP' mode and flushes the queue. */ asap(): void; /** * Writes log entries based on the current operating mode. * @param args - The content to be logged */ write(...args: any[]): void; /** Clears the log queue */ clear(): void; /** Flushes the log queue and logs the errors using the error function */ error(): void; /** Flushes the log queue and prints log entries using the print function */ print(): void; } //# sourceMappingURL=log.d.ts.map