import * as _udecode_plate_core from '@udecode/plate-core'; import { PluginConfig, SlateEditor } from '@udecode/plate'; import { T as TabbableEntry, a as TabDestination } from './types-BHrUGH2o.js'; export { b as TabDestinationDOMNode, c as TabDestinationPath } from './types-BHrUGH2o.js'; type TabblableConfig = PluginConfig<'tabbable', { /** * When true, the plugin will add its event listener to the document instead * of the editor, allowing it to capture events from outside the editor. * * @default: false */ globalEventListener?: boolean; /** * Add additional tabbables to the list of tabbables. Useful for adding * tabbables that are not contained within the editor. Ignores * `isTabbable`. * * @default: () => [] */ insertTabbableEntries?: (event: KeyboardEvent) => TabbableEntry[]; /** * Determine whether an element should be included in the tabbable list. * * @default: (editor, tabbableEntry) => editor.api.isVoid(tabbableEntry.slateNode) */ isTabbable?: (entry: TabbableEntry) => boolean; /** * Dynamically enable or disable the plugin. * * @default: () => true */ query?: (event: KeyboardEvent) => boolean; }>; declare const BaseTabbablePlugin: _udecode_plate_core.SlatePlugin boolean; } & { /** * When true, the plugin will add its event listener to the document instead * of the editor, allowing it to capture events from outside the editor. * * @default: false */ globalEventListener?: boolean; /** * Add additional tabbables to the list of tabbables. Useful for adding * tabbables that are not contained within the editor. Ignores * `isTabbable`. * * @default: () => [] */ insertTabbableEntries?: (event: KeyboardEvent) => TabbableEntry[]; /** * Determine whether an element should be included in the tabbable list. * * @default: (editor, tabbableEntry) => editor.api.isVoid(tabbableEntry.slateNode) */ isTabbable?: (entry: TabbableEntry) => boolean; /** * Dynamically enable or disable the plugin. * * @default: () => true */ query?: (event: KeyboardEvent) => boolean; }, {}, {}, {}>>; interface FindTabDestinationOptions { activeTabbableEntry: TabbableEntry | null; direction: 'backward' | 'forward'; tabbableEntries: TabbableEntry[]; } declare const findTabDestination: (editor: SlateEditor, { activeTabbableEntry, direction, tabbableEntries }: FindTabDestinationOptions) => TabDestination | null; export { BaseTabbablePlugin, type FindTabDestinationOptions, TabDestination, TabbableEntry, type TabblableConfig, findTabDestination };