import { IDocumentFactory, IElementLike, INodeLike } from "./DocumentInterface"; export type DOMSanitizerOptions = { tagPrefix?: string; replacementTagPrefix?: string; }; export declare class DOMSanitizer { /** Tags whose content and attributes are always stripped. */ static readonly BLOCKED_TAGS: Set; /** * Returns true if a tag with the given name should be stripped of all * content and attributes during sanitisation. */ static isBlockedTag(tagName: string): boolean; /** * Given a tag name and sanitisation options, returns the sanitised tag name. * Non-prefixed tags are renamed (e.g. "div" → "x-div"). Returns null for * blocked tags that should be skipped entirely. */ static sanitiseTagName(tagName: string, options: DOMSanitizerOptions): string | null; /** * Sanitises a DOM node in-place. When tag replacement occurs (via tagPrefix option), * the returned node may be a different object than the input node. */ static sanitise(node: INodeLike, options?: DOMSanitizerOptions, doc?: IDocumentFactory): INodeLike; static replaceNodeTagName(node: IElementLike, newTagName: string, doc?: IDocumentFactory): IElementLike; static stripAllAttributes(node: IElementLike): void; static IsASCIIDigit(c: string): boolean; static IsASCIIAlpha(c: string): boolean; static IsValidAttributeName(characters: string): boolean; static shouldAcceptAttribute(attribute: string): boolean; } //# sourceMappingURL=DOMSanitizer.d.ts.map