import type { Editor, Location, Node, NodeEntry, Path, Range } from 'slate'; import { moveListItemsToAnotherList, moveListToListItem } from './transformations'; import type { ListsSchema } from './types'; import { ListType } from './types'; export declare const ListsEditor: { isListsEnabled(editor: Editor): boolean; getListsSchema(editor: Editor): ListsSchema | undefined; isConvertibleToListTextNode(editor: Editor, node: Node): boolean; isDefaultTextNode(editor: Editor, node: Node): boolean; isListNode(editor: Editor, node: Node, type?: ListType): boolean; isListItemNode(editor: Editor, node: Node): boolean; isListItemTextNode(editor: Editor, node: Node): boolean; createDefaultTextNode(editor: Editor, props?: any): any; createListNode(editor: Editor, type?: ListType, props?: any): any; createListItemNode(editor: Editor, props?: any): any; createListItemTextNode(editor: Editor, props?: any): any; isDeleteBackwardAllowed(editor: Editor, at?: Location | null): boolean; isAtStartOfListItem(editor: Editor, at?: Location | null): boolean; isAtEmptyListItem(editor: Editor, at?: Location | null): boolean; isAtList(editor: Editor, at?: Location | null): boolean; isListItemContainingText(editor: Editor, node: Node): boolean; getLists(editor: Editor, at: Range | null): NodeEntry[]; getListItems(editor: Editor, at?: Location | null): NodeEntry[]; getListType(editor: Editor, node: Node): ListType; getNestedList(editor: Editor, path: Path): NodeEntry | null; getParentList(editor: Editor, path: Path): NodeEntry | null; getParentListItem(editor: Editor, path: Path): NodeEntry | null; increaseDepth(editor: Editor, at?: Location | null): boolean; increaseListItemDepth(editor: Editor, listItemPath: Path): boolean; decreaseDepth(editor: Editor, at?: Location | null): boolean; decreaseListItemDepth(editor: Editor, listItemPath: Path): boolean; mergeListWithPreviousSiblingList(editor: Editor, entry: NodeEntry): boolean; moveListItemsToAnotherList(editor: Editor, parameters: Parameters[2]): boolean; moveListToListItem(editor: Editor, parameters: Parameters[2]): void; setListType(editor: Editor, listType: ListType, at?: Location | null): boolean; splitListItem(editor: Editor, at?: Location | null): boolean; unwrapList(editor: Editor, at?: Location | null): boolean; wrapInList(editor: Editor, listType?: ListType, at?: Location | null): boolean; };