import { IRenderMime } from '@jupyterlab/rendermime-interfaces'; /** * A class to sanitize HTML strings. */ export declare class Sanitizer implements IRenderMime.ISanitizer { constructor(); /** * Sanitize an HTML string. * * @param dirty - The dirty text. * * @param options - The optional sanitization options. * * @returns The sanitized string. */ sanitize(dirty: string, options?: IRenderMime.ISanitizerOptions): string; /** * @returns Whether to replace URLs by HTML anchors. */ getAutolink(): boolean; /** * Set the allowed schemes * * @param scheme Allowed schemes */ setAllowedSchemes(scheme: Array): void; /** * Set the URL replacement boolean. * * @param autolink URL replacement boolean. */ setAutolink(autolink: boolean): void; /** * Set the whether to allow `name` and `id` attributes. */ setAllowNamedProperties(allowNamedProperties: boolean): void; private _autolink; private _allowNamedProperties; private _options; private _generateOptions; }