import type { SpreadsheetCommandContext, SpreadsheetCommandSelection, SpreadsheetCommandRange, SpreadsheetSelectionRef } from './spreadsheet-command-controller'; export declare function canEditSpreadsheetSelection(context: SpreadsheetCommandContext): boolean; export declare function spreadsheetLiveCommandRange(context: SpreadsheetCommandContext): SpreadsheetCommandRange; /** * Returns the most recent selection known to the Office bridge. The ref is * intentionally checked before Fortune's imperative API because that API is * backed by React state and can lag behind a just-issued keyboard command. */ export declare function spreadsheetLiveCommandSelection(context: SpreadsheetCommandContext): SpreadsheetCommandRange | undefined; /** * Returns all current selections while preserving the workbook's multi-range * semantics. A synchronous command selection is represented as one range. */ export declare function spreadsheetLiveCommandSelections(context: SpreadsheetCommandContext): SpreadsheetCommandRange[] | undefined; /** * Accept a Fortune selection callback unless it is older than a pending * programmatic selection request. The returned value is the normalized state * that should be published to React and collaboration consumers. */ export declare function acceptSpreadsheetSelectionChange(selectionRef: SpreadsheetSelectionRef, sheetId: string, selection: SpreadsheetCommandRange): SpreadsheetCommandSelection | null; export declare function rememberSpreadsheetCommandSelection(context: SpreadsheetCommandContext, selection: SpreadsheetCommandRange): void; /** Clear a pending programmatic request when a fresh user intent arrives. */ export declare function releaseSpreadsheetSelectionRequest(selectionRef: SpreadsheetSelectionRef): void; export declare function sameSpreadsheetSelectionValue(left: SpreadsheetCommandRange, right: SpreadsheetCommandRange): boolean;