import { TransformContext } from "./HtmlTransform.js"; import SocialMailContext from "../../model/SocialMailContext.js"; import AppFile from "../../model/entities/AppFile.js"; import EncryptionService from "../encryption/EncryptionService.js"; import ChannelUrlService from "../channels/ChannelUrlService.js"; export default class BlogContentTransformer { db: SocialMailContext; ec: EncryptionService; urlService: ChannelUrlService; cache: Record; /** * This method replaces, * 1. Images/Videos with absolute urls with CDN. * 2. Hash Tags with anchor tag with additional attributes. * 3. Time with time tag with additional attributes. * 4. `cid` urls with absolute file url to avoid round trip by client. * @param param0 */ sanitizeExternalResources({ emailID, kEmailID36, html, prefix, blog, senderDomain, senderEmail, messageID, listID, unsubscribeLink, trackerUrl }: { blog?: any; emailID: any; html: any; kEmailID36?: string; listID?: any; messageID: any; prefix: any; senderDomain?: any; senderEmail?: any; trackerUrl?: any; unsubscribeLink?: any; }): Promise; getAttachment(emailID: any, cid: any): Promise; updateStream(c: TransformContext, { emailID, eDomain, postID }: { eDomain: any; emailID: any; postID: any; }): Promise; } //# sourceMappingURL=BlogContentTransformer.d.ts.map