/** * Constructing ImapFlow clients with upstream's TLS SNI fallback repaired. */ import { ImapFlow } from 'imapflow'; type ImapClientOptions = ConstructorParameters[0]; /** * imapflow's constructor falls back to `servername = false` when the host is * an IP literal, and node's tls.connect() rejects a non-string servername. * Local installs get the fixed line via patches/imapflow.patch, but pnpm * patches never reach npm consumers of this package — so the same repair is * applied at runtime. Drop once the fix ships in an imapflow release. */ export declare function normalizeTlsServername(client: { servername?: string | false | undefined; }): void; /** Build an ImapFlow client; use this instead of calling `new ImapFlow` directly. */ export declare function createImapClient(options: ImapClientOptions): ImapFlow; export {}; //# sourceMappingURL=imap-client.d.ts.map