n8n-nodes-imap-ai
Version:
Simplified IMAP node for n8n with AI-agent support. Clean and modular email and mailbox management for automation workflows.
18 lines (17 loc) • 723 B
TypeScript
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;