import type { Editor } from '@tiptap/react'; import type { TableHandlesState } from '../../node/TableHandler/plugin'; export interface UseTableHandleStateConfig { /** Tiptap 编辑器实例;未传则使用外部上下文中的 editor */ editor?: Editor | null; /** 手柄的初始状态 */ initialState?: TableHandlesState | null; /** 仅在特定字段变动时触发更新 */ watchFields?: (keyof TableHandlesState)[]; /** 状态变更回调 */ onStateChange?: (state: TableHandlesState | null) => void; } export declare function useTableHandleState(config?: UseTableHandleStateConfig): TableHandlesState | null;