import { B as BaseIndentListConfig, G as GetSiblingIndentListOptions, L as ListStyleType } from './BaseIndentListPlugin-BsmWXxhM.mjs'; export { a as BaseIndentListPlugin, I as INDENT_LIST_KEYS, U as ULIST_STYLE_TYPES, g as getSiblingIndentList } from './BaseIndentListPlugin-BsmWXxhM.mjs'; import { RenderStaticNodeWrapper, OverrideEditor, Editor, NodeEntry, ElementOf, ElementEntryOf, EditorAboveOptions, SlateEditor, TElement, TLocation, Path } from '@udecode/plate'; import '@udecode/plate-core'; declare const renderIndentListBelowNodes: RenderStaticNodeWrapper; declare const withIndentList: OverrideEditor; declare const withNormalizeIndentList: OverrideEditor; /** Unset IndentListPlugin.key, listStart if BaseIndentPlugin.key is not defined. */ declare const normalizeIndentListNotIndented: (editor: Editor, [node, path]: NodeEntry) => true | undefined; declare const getIndentListExpectedListStart: (entry: NodeEntry, prevEntry?: NodeEntry) => number; declare const normalizeIndentListStart: , E extends Editor = Editor>(editor: E, entry: ElementEntryOf, options?: Partial>) => boolean; declare const withInsertBreakIndentList: OverrideEditor; declare const areEqListStyleType: (editor: Editor, entries: NodeEntry[], { listStyleType, }: { listStyleType?: string; }) => boolean; declare const getIndentListAbove: , E extends Editor = Editor>(editor: E, options?: Omit) => NodeEntry | undefined; interface GetIndentListSiblingsOptions, E extends Editor = Editor> extends Partial> { current?: boolean; next?: boolean; previous?: boolean; } declare const getIndentListSiblings: , E extends Editor = Editor>(editor: E, entry: ElementEntryOf, { current, next, previous, ...options }?: GetIndentListSiblingsOptions) => NodeEntry[]; /** Get the next indent list. */ declare const getNextIndentList: , E extends Editor = Editor>(editor: E, entry: ElementEntryOf, options?: Partial>) => NodeEntry | undefined; /** Get the previous indent list node. */ declare const getPreviousIndentList: , E extends Editor = Editor>(editor: E, entry: ElementEntryOf, options?: Partial>) => NodeEntry | undefined; /** * Get the first sibling list style type at the given indent. If none, return * the entry list style type. */ declare const getSiblingListStyleType: (editor: E, { entry, indent, ...options }: { entry: NodeEntry; indent: number; } & GetIndentListSiblingsOptions, E>) => ListStyleType; declare const someIndentList: (editor: SlateEditor, type: string[] | string) => boolean; declare const someIndentTodo: (editor: SlateEditor) => boolean; interface IndentListOptions { at?: TLocation; listRestart?: number; listRestartPolite?: number; listStyleType?: ListStyleType | string; } /** Increase the indentation of the selected blocks. */ declare const indentList: (editor: SlateEditor, { listStyleType, ...options }?: IndentListOptions) => void; declare const indentTodo: (editor: SlateEditor, { listStyleType, ...options }?: IndentListOptions) => void; /** Decrease the indentation of the selected blocks. */ declare const outdentList: (editor: SlateEditor, options?: IndentListOptions) => void; declare const setIndentListNode: (editor: Editor, { at, indent, listStyleType, }: { at: Path; indent?: number; listStyleType?: string; }) => void; declare const setIndentTodoNode: (editor: Editor, { at, indent, listStyleType, }: { at: Path; indent?: number; listStyleType?: string; }) => void; /** * Set indent list to the given entries. Add indent if listStyleType was not * defined. */ declare const setIndentListNodes: (editor: Editor, entries: NodeEntry[], { listStyleType, }: { listStyleType?: string; }) => void; /** Set indent list to entry + siblings. */ declare const setIndentListSiblingNodes: , E extends Editor = Editor>(editor: E, entry: ElementEntryOf, { getSiblingIndentListOptions, listStyleType, }: { getSiblingIndentListOptions?: GetSiblingIndentListOptions; listStyleType?: string; }) => void; /** Toggle indent list. */ declare const toggleIndentList: , E extends SlateEditor = SlateEditor>(editor: E, options: IndentListOptions, getSiblingIndentListOptions?: GetSiblingIndentListOptions) => void; declare const toggleIndentListByPath: (editor: SlateEditor, [node, path]: NodeEntry, listStyleType: string) => void; declare const toggleIndentListByPathUnSet: (editor: SlateEditor, [, path]: NodeEntry) => void; /** Set indent list if not set. */ declare const toggleIndentListSet: (editor: Editor, [node, _path]: NodeEntry, { listStyleType, ...options }: IndentListOptions) => true | undefined; /** Unset list style type if already set. */ declare const toggleIndentListUnset: (editor: Editor, [node, path]: NodeEntry, { listStyleType, }: { listStyleType?: string; }) => true | undefined; export { BaseIndentListConfig, type GetIndentListSiblingsOptions, GetSiblingIndentListOptions, type IndentListOptions, ListStyleType, areEqListStyleType, getIndentListAbove, getIndentListExpectedListStart, getIndentListSiblings, getNextIndentList, getPreviousIndentList, getSiblingListStyleType, indentList, indentTodo, normalizeIndentListNotIndented, normalizeIndentListStart, outdentList, renderIndentListBelowNodes, setIndentListNode, setIndentListNodes, setIndentListSiblingNodes, setIndentTodoNode, someIndentList, someIndentTodo, toggleIndentList, toggleIndentListByPath, toggleIndentListByPathUnSet, toggleIndentListSet, toggleIndentListUnset, withIndentList, withInsertBreakIndentList, withNormalizeIndentList };