DocumentHandlers
import type { DocumentHandlers } from "https://raw.githubusercontent.com/worker-tools/html-rewriter/master/index.ts";
interface DocumentHandlers {
comments?(comment: Comment): void | Promise<void>;
doctype?(doctype: Doctype): void | Promise<void>;
end?(end: DocumentEnd): void | Promise<void>;
text?(text: TextChunk): void | Promise<void>;
}