import type { ReactEventHandler } from 'react';
import { type UseDeleteControllerParams, type UseDeleteControllerReturn } from "./useDeleteController.cjs";
import type { RaRecord } from "../../types.cjs";
/**
* Prepare callback for a Delete button with undo support
* @deprecated prefer the useDeleteController hook instead
* @example
*
* import React from 'react';
* import ActionDelete from '@mui/icons-material/Delete';
* import { Button, useDeleteWithUndoController } from 'react-admin';
*
* const DeleteButton = ({
* resource,
* record,
* redirect,
* onClick,
* ...rest
* }) => {
* const { isPending, handleDelete } = useDeleteWithUndoController({
* resource,
* record,
* redirect,
* onClick,
* });
*
* return (
*
* );
* };
*/
declare const useDeleteWithUndoController: (props: UseDeleteWithUndoControllerParams) => UseDeleteWithUndoControllerReturn;
export interface UseDeleteWithUndoControllerParams extends Omit, 'mutationMode'> {
onClick?: ReactEventHandler;
}
export interface UseDeleteWithUndoControllerReturn extends Omit {
handleDelete: ReactEventHandler;
}
export = useDeleteWithUndoController;
//# sourceMappingURL=useDeleteWithUndoController.d.ts.map