/* tslint:disable */ /* eslint-disable */ /** * A configurable HTML sanitizer for use from JavaScript/TypeScript. */ export class WasmHtmlSanitizer { free(): void; [Symbol.dispose](): void; /** * Add a global attribute that is allowed on all tags. */ addGlobalAttr(name: string): void; /** * Add a tag to the allow list. * `attrs` and `url_attrs` are comma-separated attribute names (or empty string for none). */ addTag(name: string, attrs: string, url_attrs: string): void; /** * Create a new sanitizer with the default allow list. */ constructor(); /** * Remove a tag from the allow list by name (must be lowercase). */ removeTag(name: string): void; /** * Sanitize an HTML string. */ sanitize(input: string): string; } /** * Sanitize an HTML string using the default allow list. */ export function sanitize(input: string): string;