/**
 * Logging utility for mailpouch
 */
import { LogEntry } from "../types/index.js";
export declare function getLogFilePath(): string;
export declare class Logger {
    private debugMode;
    private logs;
    private maxLogs;
    private fileLogging;
    private debugFileLogging;
    /**
     * Recursively sanitize data before storing in log entries.
     * Redacts sensitive keys and truncates long strings.
     *
     * Cap recursion at SANITIZE_MAX_DEPTH so adversary-supplied JSON nested
     * thousands of levels deep can't blow the stack or burn the CPU during
     * sanitisation.
     */
    private sanitizeData;
    setDebugMode(enabled: boolean): void;
    private ts;
    debug(message: string, context?: string, data?: unknown): void;
    info(message: string, context?: string, data?: unknown): void;
    warn(message: string, context?: string, data?: unknown): void;
    error(message: string, context?: string, error?: unknown): void;
    private log;
    getLogs(level?: "debug" | "info" | "warn" | "error", limit?: number): LogEntry[];
    clearLogs(): void;
}
export declare const logger: Logger;
//# sourceMappingURL=logger.d.ts.map