import { SpreadsheetController, type SpreadsheetControllerOptions, type SpreadsheetDocument, type CellCoordinate, type CellRange, type CellData, type SpreadsheetColumn, type SpreadsheetRow, type SpreadsheetDataSource, type SpreadsheetNameScope, type SpreadsheetCommitResult, type SpreadsheetValidationAction, type SpreadsheetValidationPrompt } from '@pixerate/editor/spreadsheet'; export declare function createReactiveSpreadsheet(options?: SpreadsheetControllerOptions): { mergeCells: (range?: CellRange | null) => boolean; sortRows: (keys: import("@pixerate/editor").SortKey[], options?: { range?: CellRange | null; }) => boolean; getFilterState: () => import("@pixerate/editor").SpreadsheetFilterState; setFilterRules: (rules: import("@pixerate/editor").NewFilterRule[]) => void; addFilterRule: (rule: import("@pixerate/editor").NewFilterRule) => string; updateFilterRule: (ruleId: string, changes: Partial>) => void; removeFilterRule: (ruleId: string) => void; clearFilters: () => void; setFiltersEnabled: (enabled: boolean) => void; toggleFilters: () => void; setHeaderRowCount: (count: number) => void; setFooterRowCount: (count: number) => void; setHeaderColumnCount: (count: number) => void; setFrozenRowCount: (count: number) => void; setFrozenColumnCount: (count: number) => void; hideRows: (indices: number[]) => void; unhideRows: (indices: number[]) => void; hideColumns: (indices: number[]) => void; unhideColumns: (indices: number[]) => void; unhideAll: () => void; getMerges: () => CellRange[]; getMergeAt: (row: number, col: number) => CellRange | null; unmergeCells: (range?: CellRange | null) => boolean; autofill: (source: CellRange, target: CellRange) => boolean; groupRowsBy: (colId: string, summaries?: import("@pixerate/editor").GroupSummary[]) => void; ungroupRows: () => void; setGroupSummary: (colId: string, aggregate: import("@pixerate/editor").GroupAggregate | null) => void; setGroupCollapsed: (key: string, collapsed: boolean) => void; toggleGroupCollapsed: (key: string) => void; getGroups: () => import("@pixerate/editor").SpreadsheetRowGroup[]; transposeRange: (range?: CellRange | null) => boolean; setCellNumberFormat: (range: CellRange | null, code: string | null) => boolean; setColumnNumberFormat: (colId: string, code: string | null) => void; exportToCsv: (options?: import("@pixerate/editor").CsvExportOptions) => string; importFromCsv: (csv: string, options?: import("@pixerate/editor").CsvImportOptions) => void; copyToClipboardData: (range?: CellRange | null) => import("@pixerate/editor").SpreadsheetClipboardData; pasteClipboardData: (source: import("@pixerate/editor").SpreadsheetClipboardSource, target?: import("@pixerate/editor").CellPosition) => boolean; getConditionalFormats: () => import("@pixerate/editor").ConditionalFormatRule[]; addConditionalFormat: (rule: import("@pixerate/editor").NewConditionalFormatRule, options?: { priority?: "first" | "last"; }) => string; updateConditionalFormat: (id: string, changes: Partial) => boolean; deleteConditionalFormat: (id: string) => boolean; moveConditionalFormat: (id: string, to: number | { by: number; }) => boolean; clearConditionalFormats: (range?: CellRange | null) => void; getConditionalFormatOverlay: () => import("@pixerate/editor").ConditionalFormatOverlay; getConditionalFormat: (row: number, col: number) => import("@pixerate/editor").ConditionalCellFormat | undefined; getDataValidations: () => import("@pixerate/editor").DataValidationRule[]; getDataValidationAt: (row: number, col: number) => import("@pixerate/editor").DataValidationRule | undefined; addDataValidation: (rule: import("@pixerate/editor").NewDataValidationRule) => string; updateDataValidation: (id: string, changes: Partial) => boolean; deleteDataValidation: (id: string) => boolean; clearDataValidation: (range?: CellRange | null) => void; validateCellInput: (row: number, col: number, raw: string) => import("@pixerate/editor").DataValidationResult; getValidationListValues: (row: number, col: number) => string[] | null; findInvalidCells: () => import("@pixerate/editor").CellPosition[]; setInvalidDataCircles: (show: boolean) => void; getInvalidDataCircles: () => boolean; isInvalidDataCircled: (row: number, col: number) => boolean; document: SpreadsheetDocument; activeCell: CellCoordinate | null; selectedRange: CellRange | null; editingCell: CellCoordinate | null; viewModel: import("@pixerate/editor").SpreadsheetViewModel; draftValue: string; sheets: import("@pixerate/editor").SpreadsheetSheetInfo[]; activeSheetId: string; names: import("@pixerate/editor").SpreadsheetNameInfo[]; controller: SpreadsheetController; /** The save / load / undo contract (for `createEditorAutosave` or `createDocumentToolProvider`). */ editorDocument: import("@pixerate/editor/persistence").EditorDocument; getCell(rowId: string, colId: string): CellData; setCellValue(rowId: string, colId: string, raw: string): void; selectCell(row: number, col: number, extendSelection?: boolean): void; selectRange(range: CellRange): void; startEditing(row?: number, col?: number, initialVal?: string): void; conditionalFormatOverlay: import("@pixerate/editor").ConditionalFormatOverlay; validationPrompt: SpreadsheetValidationPrompt | null; commitEditing(val?: string): SpreadsheetCommitResult; /** Commits input from outside the cell editor (formula bar, list dropdown) with validation. */ commitCellInput(rowId: string, colId: string, raw: string): SpreadsheetCommitResult; /** Answers the validation alert: accept (warning / information), retry or cancel. */ resolveValidationPrompt(action: SpreadsheetValidationAction): void; cancelEditing(): void; moveCursor(dir: "up" | "down" | "left" | "right", extend?: boolean): void; insertColumn(index: number, config?: Partial): void; deleteColumn(colId: string): void; insertRow(index: number, config?: Partial): void; deleteRow(rowId: string): void; setColumnWidth(colId: string, width: number): void; autoFitColumnWidth(colId: string, customWidth?: number): void; loadDocument(document: SpreadsheetDocument): void; syncWithDataSource(): void; registerDataSource(ds: SpreadsheetDataSource): void; setPrimaryDataSource(id: string | undefined): void; recalculateAll(): void; exportToTsv(range?: CellRange | null): string; importFromTsv(data: string): void; undo(): void; redo(): void; setActiveSheet(idOrName: string): boolean; addSheet(options?: Parameters<(options?: { name?: string; index?: number; document?: Partial; activate?: boolean; }) => string>[0]): string; renameSheet(idOrName: string, newName: string): void; moveSheet(idOrName: string, toIndex: number): boolean; deleteSheet(idOrName: string): boolean; duplicateSheet(idOrName: string, options?: Parameters<(idOrName: string, options?: { name?: string; index?: number; activate?: boolean; }) => string | null>[1]): string | null; defineName(name: string, refersTo: string, options?: SpreadsheetNameScope & { comment?: string; }): void; renameName(oldName: string, newName: string, options?: SpreadsheetNameScope): void; deleteName(name: string, options?: SpreadsheetNameScope): boolean; };