import type { Op } from '@fortune-sheet/core'; import type { WorkbookInstance } from '@fortune-sheet/react'; import { type RefObject } from 'react'; import type { WorkSpreadsheetContent } from '../work-types'; import type { SpreadsheetCalculationCommandPort } from './spreadsheet-command-controller'; interface UseSpreadsheetCalculationOptions { content: WorkSpreadsheetContent; kernelWasmUrl?: string; workbookRef: RefObject; } export interface SpreadsheetCalculationController extends SpreadsheetCalculationCommandPort { hasPendingResultPatches: () => boolean; notifyWorkbookOperations: (operations: readonly Op[]) => void; synchronizeWorkbook: (content: WorkSpreadsheetContent, operations: readonly Op[]) => void; } export declare function useSpreadsheetCalculation({ content, kernelWasmUrl, workbookRef, }: UseSpreadsheetCalculationOptions): SpreadsheetCalculationController; export {};