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