import type { WorkOfficeCollaborationSession } from '../../../collaboration/office-collaboration'; import type { WorkEditorAgentRequest } from '../work-agent-request'; import type { WorkSpreadsheetContent } from '../work-types'; import { type SpreadsheetEditorCommands } from './spreadsheet-command-controller'; import type { SpreadsheetSortCustomListStore } from './spreadsheet-sort-custom-list-store'; import { type WorkOfficeFileAction } from './work-office-chrome'; export interface SpreadsheetEditorProps { autoFocus?: boolean; collaboration?: WorkOfficeCollaborationSession; content: WorkSpreadsheetContent; kernelWasmUrl?: string; preview: boolean; saveStatus?: string; sortCustomListStore?: SpreadsheetSortCustomListStore; fileActions?: readonly WorkOfficeFileAction[]; onChange: (content: WorkSpreadsheetContent) => void; onAgentRequest?: (request: WorkEditorAgentRequest) => void | Promise; } export declare function SpreadsheetEditor(props: SpreadsheetEditorProps): import("react").JSX.Element; export declare function focusSpreadsheetGrid(container: HTMLElement | null, { focusOrigin, forceCellEditingExit, forceInitial, }?: { focusOrigin?: Element | null; forceCellEditingExit?: boolean; forceInitial?: boolean; }): void; export declare function preserveSpreadsheetGridFocus(container: HTMLElement | null, target: EventTarget | null): void; export declare function spreadsheetCommandsWithGridFocus(commands: SpreadsheetEditorCommands, restoreFocus: () => void): SpreadsheetEditorCommands;