export declare class TransformContext { protected readonly document: any; node: Node; get element(): HTMLElement; get isTextNode(): boolean; get isElement(): boolean; get nodeType(): "Element" | "TextNode"; private queueActions; constructor(document: any); remove: () => void; queue: (x: () => void | Promise) => void; iterateAttributes(attributes: string[]): Generator<{ name: string; value: string; }, void, unknown>; /** * This method will replace fragment of text with nodes represented by given html. * This isn't simple as replacing innerHTML, as parent might contain multiple text nodes. * And only one of the text node is replaced with multiple html nodes. * For example, * ```html *
* This is a notification regarding * Email * That your account has been #Activated; *
* ``` * In this example, only last text node is replaced with * ```html * That your account has been #Activated * ``` * @param html outer html to be replaced */ replaceNodeWithHtml: (html: any) => void; replaceBackground(prefix: any): void; replaceSrc(prefix: any, attributeName?: string): void; commit(): Promise; } export default class HtmlTransform { readonly url: string; readonly root: HTMLElement; document: Document; get html(): string; private context; constructor(html: string, url?: string); all(): Generator; commit(): Promise; } //# sourceMappingURL=HtmlTransform.d.ts.map