import type { FetchMessageObject } from 'imapflow'; import type { IDataObject } from 'n8n-workflow'; export interface AttachmentInfo { partId: string; fileName?: string; mimeType: string; size: number; disposition?: string; contentId?: string; } export interface NormalizedAddress { name?: string; address: string; } export interface NormalizedMessage extends IDataObject { id: string; uid: number; mailbox: string; subject?: string; from: NormalizedAddress[]; to: NormalizedAddress[]; cc: NormalizedAddress[]; bcc: NormalizedAddress[]; date?: Date; size: number; flags: string[]; hasAttachments: boolean; attachments?: AttachmentInfo[]; snippet?: string; headers: Record; text?: string; html?: string; } export declare const normalizeAddress: (addr: any) => NormalizedAddress; export declare const normalizeAddresses: (addresses?: any[]) => NormalizedAddress[]; export declare const createSnippet: (text?: string, html?: string, maxLength?: number) => string; export declare const normalizeFlags: (flags: string[] | Set) => string[]; export declare const normalizeMessage: (msg: FetchMessageObject, mailbox: string, text?: string, html?: string, attachments?: AttachmentInfo[]) => NormalizedMessage; export declare const parseHeaderValue: (value?: string | string[]) => string; export declare const extractEmailFromString: (emailStr: string) => string; export declare const formatEmailAddress: (address: NormalizedAddress) => string; //# sourceMappingURL=normalize.d.ts.map