import { type SoloLogger } from './logging/solo-logger.js';
export declare class ErrorHandler {
    private readonly logger;
    constructor(logger: SoloLogger);
    handle(error: Error | any): void;
    private handleUserBreak;
    private handleSilentBreak;
    private handleError;
    /**
     * Recursively checks if an error is or is caused by a UserBreak
     * Returns the UserBreak or SilentBreak if found, otherwise false
     * @param err
     */
    private extractBreak;
}
