import { EventEmitter } from 'events'; import type Imap from 'imap'; import { PartData } from './part-data'; import type { Message, MessagePart, SearchCriteria } from './types'; export declare class ImapSimple extends EventEmitter { private readonly imap; constructor(imap: Imap); end(): void; search(searchCriteria: SearchCriteria[], fetchOptions: Imap.FetchOptions, limit?: number): Promise; getPartData(message: Message, part: MessagePart): Promise; addFlags(uid: number[], flags: string | string[]): Promise; getBoxes(): Promise; openBox(boxName: string): Promise; closeBox(autoExpunge?: boolean): Promise; }