import type { Selection } from '@fortune-sheet/core'; import type { WorkSpreadsheetContent } from '../work-types'; import type { SpreadsheetEditorCommands, SpreadsheetTableCommandPort } from './spreadsheet-command-controller'; export interface SpreadsheetTableSelectionState { selection: Selection; sheetId: string; } export declare function useSpreadsheetTable({ commandsRef, contentRef, focusGrid, getGridFocusTarget, getLiveSelection, preview, }: { commandsRef: { current: SpreadsheetEditorCommands | null; }; contentRef: { current: WorkSpreadsheetContent; }; focusGrid: (focusOrigin: Element | null) => void; getGridFocusTarget: () => HTMLElement | null; getLiveSelection: () => Selection | undefined; preview: boolean; }): { commandPort: SpreadsheetTableCommandPort; selectionForChange: () => SpreadsheetTableSelectionState | null; dialog: import("react").JSX.Element | null; };