/** * @license * Copyright Stbui All Rights Reserved. * https://github.com/stbui */ import { DELETE } from './dataFatchActions'; export declare const CRUD_DELETE = "CRUD_DELETE"; export declare const CRUD_DELETE_LOADING = "CRUD_DELETE_LOADING"; export declare const CRUD_DELETE_SUCCESS = "CRUD_DELETE_SUCCESS"; export declare const CRUD_DELETE_FAILURE = "CRUD_DELETE_FAILURE"; interface RequestPayload { id: string | number; previousData: any; } export interface CrudDeleteAction { readonly type: typeof CRUD_DELETE; readonly payload: RequestPayload; readonly meta: { resource: string; fetch: typeof DELETE; onSuccess: { notification: any; redirectTo: any; refresh: any; basePath: string; }; onFailure: { notification: any; }; }; } export declare const crudDelete: (resource: string, id: string | number, previousData: any, basePath: string, redirectTo?: string, refresh?: boolean) => CrudDeleteAction; export {};