import type { CollectionOptimisticActions, CollectionState, FiltersMap } from '@wix/bex-core'; import type { EditableTableState } from './EditableTableState'; export interface EditableTableMutationHandlers { /** Factory to create a new empty item with a fresh ID */ createItem: () => T; /** Submit updated items to the server */ submitUpdate: (items: T[]) => Promise; /** Submit newly created items to the server */ submitCreate: (items: T[]) => Promise; /** Submit item deletions to the server */ submitDelete: (items: T[]) => Promise; } export declare class MutationState { private readonly _handlers; private readonly _optimisticActions; private readonly _parent; constructor(parent: EditableTableState, handlers: EditableTableMutationHandlers, createOptimisticActions: (collection: CollectionState) => CollectionOptimisticActions); init(): () => void; addItem(afterItemKey?: string): string; duplicateItem(rowKey: string): void; deleteItems(rowKeys: string[]): void; updateItems(updatedItems: T[]): void; } //# sourceMappingURL=MutationState.d.ts.map