import type { Editor } from "@tiptap/core"; import { type TableToolbarItem } from "@pixerate/editor"; interface Props { editor?: Editor | null; /** Buttons to show (default `DEFAULT_TABLE_TOOLBAR`). */ items?: readonly TableToolbarItem[]; /** Render (with disabled buttons) when the selection is not in a table. Default `false`. */ showWhenOutside?: boolean; class?: string; buttonClass?: string; activeButtonClass?: string; separatorClass?: string; /** Called after a button ran its action. */ onaction?: (item: TableToolbarItem) => void; } declare const TableToolbar: import("svelte").Component; type TableToolbar = ReturnType; export default TableToolbar;