/**
* @license
* Copyright Stbui All Rights Reserved.
* https://github.com/stbui/prophet
*/
export interface DeleteProps {
resource: string;
basePath: string;
id: string | number;
record: object;
successMessage?: string;
}
/**
*
* @param props
*
* @example
*
* import { useDeleteController } from '@stbui/prophet-core';
*
* const DeleteView = () =>
...
*
* const App = props => {
* const controllerProps = useDeleteController(props);
*
* return ;
* }
*/
export declare const useDeleteController: (props: DeleteProps) => {
resource: string;
basePath: string;
update: (id: string | number, data: any, { onSuccess, onFailure }?: any) => void;
remove: (id: string | number, data: any, { onSuccess, onFailure }?: any) => void;
deleting: boolean | undefined;
};
export default useDeleteController;