import { Email } from './email-viewer.types';
/**
 * Email loading/parsing helpers for `limel-file-viewer`.
 *
 * Parses an RFC 5322 / MIME email message (commonly stored as a `.eml` file)
 * and returns a simplified `Email` view-model.
 */
/**
 * Fetches and parses an email message.
 *
 * - Prefers `email.html` if present, otherwise falls back to `email.text`.
 * - Attempts to resolve inline images referenced via `cid:` by replacing
 *   `<img src="cid:...">` with `data:` URLs generated from inline attachments.
 *
 * @param url - URL to an email message, usually ending in `.eml`.
 * @returns A simplified `Email` object for rendering.
 */
export declare function loadEmail(url: string): Promise<Email>;
//# sourceMappingURL=email-loader.d.ts.map