/** * Rewrites `cid:` references in `src`/`href` attributes using a resolver. * * Useful for turning inline (Content-ID) image references into hosted URLs for previews/webmail, or * for normalizing them. Returning `undefined` from the resolver leaves that reference unchanged. * @param html The HTML email. * @param resolver Maps a Content-ID to a replacement URL (or `undefined` to keep it). * @returns The rewritten HTML. */ declare const rewriteCidLinks: (html: string, resolver: (cid: string) => string | undefined) => string; /** * Collects the Content-IDs referenced via `cid:` in `src`/`href` attributes. * @param html The HTML email. * @returns The referenced Content-IDs (de-duplicated, in first-seen order). */ declare const extractCidReferences: (html: string) => string[]; export { extractCidReferences, rewriteCidLinks };