import { MoveChildrenOptions } from '@udecode/slate-plugins-common'; import { SPEditor, TElement } from '@udecode/slate-plugins-core'; import { NodeEntry, Path } from 'slate'; export interface MergeListItemIntoListOptions { /** * List items of the sublist of this node will be moved. */ fromListItem?: NodeEntry; /** * List items of the list will be moved. */ fromList?: NodeEntry; /** * List items will be moved in this list. */ toList?: NodeEntry; fromStartIndex?: MoveChildrenOptions['fromStartIndex']; /** * List position where to move the list items. */ toListIndex?: number | null; to?: Path; /** * Delete `fromListItem` sublist if true. * @default true */ deleteFromList?: boolean; } /** * Move the list items of the sublist of `fromListItem` to `toList` (if `fromListItem` is defined). * Move the list items of `fromList` to `toList` (if `fromList` is defined). */ export declare const moveListItemsToList: (editor: SPEditor, { fromList, fromListItem, fromStartIndex, to: _to, toList, toListIndex, deleteFromList, }: MergeListItemIntoListOptions) => number | undefined; //# sourceMappingURL=moveListItemsToList.d.ts.map