import Editor from '../../editor'; export interface ParsedCssRule { selectors: string | string[]; style: Record; atRule?: string; params?: string; } export type CustomParserCss = (input: string, editor: Editor) => ParsedCssRule[]; export type CustomParserHtml = (input: string, options: HTMLParserOptions) => HTMLElement; export interface HTMLParserOptions { /** * DOMParser mime type. * If you use the `text/html` parser, it will fix the invalid syntax automatically. * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString * @default 'text/html' */ htmlType?: DOMParserSupportedType; /** * Allow