/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ export {}; declare global { interface SetHTMLUnsafeOptions { runScripts?: boolean; sanitizer?: any; } interface SetHTMLOptions { sanitizer?: any; } interface Element { setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; appendHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; prependHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; streamHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamAppendHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamPrependHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; appendHTML(html: string, options?: SetHTMLOptions): void; prependHTML(html: string, options?: SetHTMLOptions): void; streamHTML(options?: SetHTMLOptions): WritableStream; streamAppendHTML(options?: SetHTMLOptions): WritableStream; streamPrependHTML(options?: SetHTMLOptions): WritableStream; } interface ShadowRoot { setHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; appendHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; prependHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; streamHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamAppendHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamPrependHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; appendHTML(html: string, options?: SetHTMLOptions): void; prependHTML(html: string, options?: SetHTMLOptions): void; streamHTML(options?: SetHTMLOptions): WritableStream; streamAppendHTML(options?: SetHTMLOptions): WritableStream; streamPrependHTML(options?: SetHTMLOptions): WritableStream; } interface ChildNode { beforeHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; afterHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; replaceWithHTMLUnsafe(html: string, options?: SetHTMLUnsafeOptions): void; streamBeforeHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamAfterHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; streamReplaceWithHTMLUnsafe(options?: SetHTMLUnsafeOptions): WritableStream; beforeHTML(html: string, options?: SetHTMLOptions): void; afterHTML(html: string, options?: SetHTMLOptions): void; replaceWithHTML(html: string, options?: SetHTMLOptions): void; streamBeforeHTML(options?: SetHTMLOptions): WritableStream; streamAfterHTML(options?: SetHTMLOptions): WritableStream; streamReplaceWithHTML(options?: SetHTMLOptions): WritableStream; } }