import React from 'react'; import { Plugin } from '@aomao/engine'; import type { NodeInterface, PluginOptions, Node } from '@aomao/engine'; import type { CollapseItemProps } from '../collapse/item'; import ToolbarComponent, { ToolbarPopup } from './component'; import type { ToolbarValue, GroupItemProps } from './component'; declare type Config = Array<{ title: React.ReactNode; items: Array | string>; }>; export interface ToolbarOptions extends PluginOptions { config?: Config | false; popup?: { items: GroupItemProps[]; }; } declare class ToolbarPlugin extends Plugin { static get pluginName(): string; private popup?; init(): void; paserValue: (node: NodeInterface) => boolean; paserNode: (node: Node) => false | undefined; onSlash: (event: KeyboardEvent) => void; execute(...args: any): void; destroy(): void; } export { ToolbarComponent, ToolbarPopup }; export type { ToolbarValue }; export default ToolbarPlugin;