import type { CSSProperties } from 'react'; import type { SlatePlugin } from '../types/SlatePlugin'; import type { SlateComponentPluginDefinition } from '../types/slatePluginDefinitions'; import type { HtmlBlockData } from './createSimpleHtmlBlockPlugin'; declare type ListDef = { type: string; icon?: JSX.Element; label?: string; hotKey?: string; tagName: keyof JSX.IntrinsicElements; noButton?: boolean; getStyle?: () => CSSProperties; listItem?: { type: string; tagName: keyof JSX.IntrinsicElements; }; }; declare type ListItemDef = SlateComponentPluginDefinition>; declare type CustomizeFunction = (def: ListItemDef) => ListItemDef; declare type ListCustomizers = { customizeList?: CustomizeFunction; customizeListItem?: CustomizeFunction; }; declare function createListPlugin(defRaw: ListDef): { (customizers: ListCustomizers): { (customizers: ListCustomizers): any; toPlugin(): SlatePlugin[]; }; toPlugin(): SlatePlugin[]; }; export default createListPlugin; //# sourceMappingURL=createListPlugin.d.ts.map