import './style.css'; import { SylApi, SylUnionPlugin } from '@syllepsis/adapter'; import { isInTable } from 'prosemirror-tables'; import { NodeView } from 'prosemirror-view'; import { IMenuConfig } from './component/menu-button'; import { ITableProps } from './const'; import { TContextMenu } from './menu-helper'; import { TableItemPlugin } from './table-item'; interface ITablePluginProps { columnResize?: { handleWidth?: number; cellMinWidth?: number; View?: NodeView; lastColumnResizable?: boolean; }; table?: Partial; button?: IMenuConfig; menus?: TContextMenu[]; } declare class TablePlugin extends SylUnionPlugin { name: string; init(editor: SylApi, props: ITablePluginProps): { nativePlugins: import("prosemirror-state").Plugin[]; sylPlugins: ({ plugin: typeof import("@syllepsis/adapter/dist/es/schema/plugin").SylPlugin; controllerProps?: undefined; } | { plugin: typeof TableItemPlugin; controllerProps: { row: number; column: number; cellWith: number; margin: number; defaultColor: string; direction: "ltr" | "rtl"; activeColor: string; trigger: "click" | "hover"; allowTableNodeSelection: boolean; defaultCellWidth: number; useTableHeader: boolean; cellAttributes: import("@syllepsis/adapter/dist/es/libs/types").Types.StringMap<{ default: any; getFromDOM: (dom: HTMLElement) => any; setDOMAttr: (value: string, attrs: import("@syllepsis/adapter/dist/es/libs/types").Types.StringMap) => any; }>; }; })[]; }; } export { isInTable, ITablePluginProps, ITableProps, TablePlugin };