import { SanitizerBase } from '../index'; export interface IAllowedHtmlAttribute { [key: string]: string[]; } export interface IAllowedHtmlClass { [key: string]: string[]; } export interface ITransformHtmlTag { [key: string]: ((item: string, attribs?: any) => string) | string; } export interface IFilterHtmlTag { [key: string]: (item: string, attribs?: any) => boolean; } export interface IHtmlSanitizerOptions { AllowedTags?: string[]; AllowedAttributes?: IAllowedHtmlAttribute; AllowedClasses?: IAllowedHtmlClass[]; AllowedSchemes?: string[]; SelfClosingTags?: string[]; TransformTags?: ITransformHtmlTag; FilterTags?: IFilterHtmlTag | string[]; } export declare class HtmlSanitizer extends SanitizerBase { private options?; private tagRegex; private tagAttrRegex; constructor(options?: IHtmlSanitizerOptions); sanitize(value: string): Promise; private sanitizeInnerText; private hasTag; private sanitizeTagAttributes; private getTagAttributeParts; private getTagParts; private escapeHtml; }