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