import { Cell } from "./helper"; interface Action { kind: string; } /** Adds a row to the table. */ export interface AddRowAction extends Action { kind: typeof AddRowAction.KIND; rowId: string; values: Cell[]; } export declare namespace AddRowAction { const KIND = "addRow"; function create(rowId: string, values: Cell[]): AddRowAction; function isThisAction(action: Action): action is AddRowAction; } /** Updates a cell of the table. A new cell is added if necessary */ export interface UpdateCellAction extends Action { kind: typeof UpdateCellAction.KIND; rowId: string; columnId: string; value: Cell; } export declare namespace UpdateCellAction { const KIND = "updateCell"; function create(rowId: string, columnId: string, value: Cell): UpdateCellAction; function isThisAction(action: Action): action is UpdateCellAction; } /** Resets the table to the headers. */ export interface ResetTableAction extends Action { kind: typeof ResetTableAction.KIND; } export declare namespace ResetTableAction { const KIND = "resetTable"; function create(): ResetTableAction; function isThisAction(action: Action): action is ResetTableAction; } /** Sends the Id of the selected row, Id of the selected column, and content of the cell if it exists to the client */ export interface SelectedCellAction extends Action { kind: typeof SelectedCellAction.KIND; rowId: string; columnId: string; text?: string; } export declare namespace SelectedCellAction { const KIND = "selectRow"; function create(rowId: string, columnId: string, text?: string): SelectedCellAction; function isThisAction(action: Action): action is SelectedCellAction; } export {}; //# sourceMappingURL=actions.d.ts.map