import { ImapFlow } from 'imapflow';
import { Logger } from 'n8n-workflow';
import { ImapCredentialsData } from '../../../credentials/ImapCredentials.credentials';
export declare class ImapFlowErrorCatcher {
    private static instance;
    private messages;
    private isCatching;
    private catchWarnings;
    private constructor();
    static getInstance(): ImapFlowErrorCatcher;
    private getMessageFromImapError;
    startErrorCatching(catchWarnings?: boolean): void;
    stopAndGetErrors(): string[];
    onImapError(error: object): void;
    onImapWarning(warning: object): void;
}
export declare function createImapClient(credentials: ImapCredentialsData, logger?: Logger, enableDebugLogs?: boolean): ImapFlow;
