import type { Snippet } from 'svelte'; import { type SpreadsheetColumn, type SpreadsheetRow, type CellData } from '@pixerate/editor/spreadsheet'; import type { AgentPlayback } from '@pixerate/editor/tools'; import { createReactiveSpreadsheet } from './spreadsheet.svelte.js'; interface Props { sheetState?: ReturnType; readOnly?: boolean; readonly?: boolean; showFormulaBar?: boolean; class?: string; customCellRenderer?: Snippet<[CellData, SpreadsheetColumn, SpreadsheetRow]> | Snippet<[{ row: SpreadsheetRow; col: SpreadsheetColumn; cell: CellData; }]>; onAddColumnClick?: () => void; onColumnHeaderClick?: (col: SpreadsheetColumn) => void; onColumnResize?: (colId: string, width: number) => void; /** Show the sheet tabs bar under the grid (add, switch, rename, reorder, delete sheets). */ showSheetTabs?: boolean; /** * Render only the rows and columns in (or near) view. `'auto'` (default) * virtualises sheets with more than 200 displayed rows or 60 columns; * `true` / `false` force it. */ virtualize?: boolean | 'auto'; /** * Agent playback: act out the spreadsheet tools' calls here with the agent's cursor (default: * `setAgentPlayback` above; `null` turns it off). */ playback?: AgentPlayback | null; /** The playback surface id (default `spreadsheet`, where `createSpreadsheetToolProvider` plays). */ playbackId?: string; /** Bring the grid on screen (switch to its tab) before the agent acts. */ onplaybackreveal?: () => void | Promise; } declare const SpreadsheetEditor: import("svelte").Component; type SpreadsheetEditor = ReturnType; export default SpreadsheetEditor;