import type { GridState } from '../../core/grid/index.js'; import type { ColumnDef, ColumnState, EditTransaction, GridFeature, RowNode } from '../../core/types/index.js'; import type { EditingCell, EditingOptions, MoveDirection } from './editing.types.js'; export declare class Editing { #private; active: EditingCell | null; rowEditId: string | null; draft: unknown; drafts: Record; error: string | null; rowErrors: Record; readonly mode: 'cell' | 'row'; readonly commitOnBlur: boolean; constructor(grid: GridState, options: EditingOptions); get canUndo(): boolean; get canRedo(): boolean; editableAt(node: RowNode, def: ColumnDef): boolean; isEditing(rowId: string, columnId: string): boolean; startEdit: (rowId: string, columnId: string) => void; beginEdit: (rowId: string, columnId: string) => void; startEditWith: (rowId: string, columnId: string, initial: string) => void; setDraft: (value: unknown) => void; setRowDraft: (columnId: string, value: unknown) => void; cancel: () => void; commit: () => boolean | Promise; commitAndMove: (direction: MoveDirection) => void; startRowEdit: (rowId: string) => void; commitRow: () => boolean | Promise; cancelRow: () => void; undo: () => void; redo: () => void; applyEdits: (edits: EditTransaction[]) => boolean | Promise; pasteText: (text: string) => boolean | Promise; } export declare function editing(options?: EditingOptions): GridFeature; export declare function getEditing(grid: GridState): Editing | undefined; export declare function editorTypeOf(column: ColumnState): string; declare module '../../core/types/api.js' { interface GridApi { beginEdit?: (rowId: string, columnId: string) => void; startEditing?: (rowId: string, columnId: string) => void; stopEditing?: () => void; getEditingCell?: () => EditingCell | null; startRowEdit?: (rowId: string) => void; commitRow?: () => boolean | Promise; applyEdits?: (edits: EditTransaction[]) => boolean | Promise; pasteText?: (text: string) => boolean | Promise; undo?: () => void; redo?: () => void; } }