/** * FetchedMessage — NativeFetchedMessage plus parsed-header state and convenience getters. * * Inherits the NativeFetchedMessage shape (via `implements`) so a FetchedMessage * is-a NativeFetchedMessage: it can be passed anywhere the native interface is * expected. Callers that want the raw shape treat it as NativeFetchedMessage; * callers that want extras read `.ymd`, `.listUnsubscribe`, etc. directly. */ import type { NativeFetchedMessage } from "./imap-native.js"; import type { AddressData } from "./imap-protocol.js"; /** Case-insensitive multi-value header map (one key may repeat). */ declare class HeaderMap { private items; add(key: string, value: string): void; get(key: string): string[] | undefined; } export declare class FetchedMessage implements NativeFetchedMessage { seq: number; uid: number; flags: Set; date: Date | null; sentDate?: Date; subject: string; messageId: string; from: AddressData[]; to: AddressData[]; cc: AddressData[]; bcc: AddressData[]; sender: AddressData[]; replyTo: AddressData[]; inReplyTo: string; size: number; source: string; headers: string; seen: boolean; flagged: boolean; answered: boolean; draft: boolean; modSeq?: number; parsedHeader: string[][]; headerSet: HeaderMap; constructor(init: NativeFetchedMessage); get unread(): boolean; get deleted(): boolean; get hasFlag(): boolean; get ymd(): string | undefined; /** Self-typed as a keyable record for dynamic address-field access by screening rules. */ get tcsb(): Record; get listUnsubscribe(): string | undefined; get xpriority(): string | undefined; get importance(): string | undefined; get deliveredTo(): string | undefined; } export {}; //# sourceMappingURL=fetched-message.d.ts.map