import "./_dnt.polyfills.js"; import type { ContentTypeOptions, Element, EndTag, Comment, TextChunk, Doctype, DocumentEnd, ElementHandlers, DocumentHandlers } from "./vendor/html_rewriter.d.d.js"; export type { ContentTypeOptions, Element, EndTag, Comment, TextChunk, Doctype, DocumentEnd, ElementHandlers, DocumentHandlers, }; declare const kEnableEsiTags: unique symbol; export declare class HTMLRewriter { #private; [kEnableEsiTags]: boolean; constructor(); on(selector: string, handlers: ElementHandlers): this; onDocument(handlers: DocumentHandlers): this; transform(response: Response): Response; } export declare function withEnableEsiTags(rewriter: HTMLRewriter): HTMLRewriter;