/** */ export class Comment { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} content * @param {any | undefined} content_type */ before(content: string, content_type: any | undefined): Comment; /** * @param {string} content * @param {any | undefined} content_type */ after(content: string, content_type: any | undefined): Comment; /** * @param {string} content * @param {any | undefined} content_type */ replace(content: string, content_type: any | undefined): Comment; /** */ remove(): Comment; /** * @returns {boolean} */ get removed(): boolean; /** * @param {string} text */ set text(arg: string); /** * @returns {string} */ get text(): string; } /** */ export class Doctype { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @returns {any} */ get name(): any; /** * @returns {any} */ get publicId(): any; /** * @returns {any} */ get systemId(): any; } /** */ export class DocumentEnd { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} content * @param {any | undefined} content_type */ append(content: string, content_type: any | undefined): DocumentEnd; } /** */ export class Element { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} content * @param {any | undefined} content_type */ before(content: string, content_type: any | undefined): Element; /** * @param {string} content * @param {any | undefined} content_type */ after(content: string, content_type: any | undefined): Element; /** * @param {string} content * @param {any | undefined} content_type */ replace(content: string, content_type: any | undefined): Element; /** */ remove(): Element; /** * @returns {boolean} */ get removed(): boolean; /** * @param {string} name */ set tagName(arg: string); /** * @returns {string} */ get tagName(): string; /** * @returns {any} */ get namespaceURI(): any; /** * @returns {any} */ get attributes(): any; /** * @param {string} name * @returns {any} */ getAttribute(name: string): any; /** * @param {string} name * @returns {boolean} */ hasAttribute(name: string): boolean; /** * @param {string} name * @param {string} value */ setAttribute(name: string, value: string): Element; /** * @param {string} name */ removeAttribute(name: string): Element; /** * @param {string} content * @param {any | undefined} content_type */ prepend(content: string, content_type: any | undefined): Element; /** * @param {string} content * @param {any | undefined} content_type */ append(content: string, content_type: any | undefined): Element; /** * @param {string} content * @param {any | undefined} content_type */ setInnerContent(content: string, content_type: any | undefined): Element; /** */ removeAndKeepContent(): Element; /** * @param {any} handler */ onEndTag(handler: any): void; } /** */ export class EndTag { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} name */ set name(arg: string); /** * @returns {string} */ get name(): string; /** * @param {string} content * @param {any | undefined} content_type */ before(content: string, content_type: any | undefined): EndTag; /** * @param {string} content * @param {any | undefined} content_type */ after(content: string, content_type: any | undefined): EndTag; /** */ remove(): EndTag; } /** */ export class HTMLRewriter { static __wrap(ptr: any): any; /** * @param {any} output_sink * @param {any | undefined} options */ constructor(output_sink: any, options: any | undefined); __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} selector * @param {any} handlers */ on(selector: string, handlers: any): HTMLRewriter; /** * @param {any} handlers */ onDocument(handlers: any): HTMLRewriter; /** * @param {Uint8Array} chunk */ write(chunk: Uint8Array): Promise; /** */ end(): Promise; /** * @returns {number} */ get asyncifyStackPtr(): number; } /** */ export class TextChunk { static __wrap(ptr: any): any; __destroy_into_raw(): number | undefined; ptr: number | undefined; free(): void; /** * @param {string} content * @param {any | undefined} content_type */ before(content: string, content_type: any | undefined): TextChunk; /** * @param {string} content * @param {any | undefined} content_type */ after(content: string, content_type: any | undefined): TextChunk; /** * @param {string} content * @param {any | undefined} content_type */ replace(content: string, content_type: any | undefined): TextChunk; /** */ remove(): TextChunk; /** * @returns {boolean} */ get removed(): boolean; /** * @returns {string} */ get text(): string; /** * @returns {boolean} */ get lastInTextNode(): boolean; } export default init; declare function init(input: any): Promise;