/// import { RaRecord, onError, OnSuccess, TransformData, MutationMode } from '../../types'; import { Middleware } from './useMutationMiddlewares'; export interface SaveContextValue any = (...args: any[]) => any> { save?: SaveHandler; saving?: boolean; mutationMode?: MutationMode; registerMutationMiddleware?: (callback: Middleware) => void; unregisterMutationMiddleware?: (callback: Middleware) => void; } export declare type SaveHandler = (record: Partial, callbacks?: { onSuccess?: OnSuccess; onError?: onError; transform?: TransformData; }) => Promise | Record; export declare const SaveContext: import("react").Context any>>; //# sourceMappingURL=SaveContext.d.ts.map