import { FiltersMap, UpdateManyParams, OptimisticActions, CreateManyParams, DeleteManyParams, UpdateAllParams, ToastConfig } from '@wix/bex-core';
import { NestedTableNodeState } from './NestedTableNodeState';
export declare class NestedTableNodeStateOptimisticActions<C extends string, T, F extends FiltersMap> implements OptimisticActions<T> {
    readonly node: NestedTableNodeState<C, T, F>;
    constructor(node: NestedTableNodeState<C, T, F>);
    _runAction<A extends {
        submit: (...args: any) => any;
        successToast?: ToastConfig | string;
        errorToast?: (err: unknown, params: {
            retry: () => void;
        }) => ToastConfig | string;
    }>(action: (optimisticActions: OptimisticActions<T>, params: A) => void, params: A): void;
    createOne(item: T, params: CreateManyParams<T>): void;
    createMany(items: T[], params: CreateManyParams<T>): void;
    updateAll<R>(patchOrFn: (item: T) => Partial<T>, params: UpdateAllParams<R>): void;
    deleteMany<R>(items: T[], params: DeleteManyParams<T, R>): void;
    deleteOne<R>(item: T, params: DeleteManyParams<T, R>): void;
    deleteAll<R>(params: UpdateAllParams<R>): void;
    updateMany<R>(items: T[], params: UpdateManyParams<T, R>): void;
    updateOne<R>(item: T, params: UpdateManyParams<T, R>): void;
}
//# sourceMappingURL=NestedTableNodeStateOptimisticActions.d.ts.map