/** * React Query Mutation Hook for Deleting Files * Provides mutation state and cache invalidation */ import { createApiMutation } from '../../../hooks/factories'; import type { DeleteFileRequest, DeleteFileResponse, ServiceOptions } from '@plyaz/types/api'; import type { ErrorResponse } from '@plyaz/types/errors'; import type { EndpointsList } from '@/api/endpoints'; /** * Hook for deleting files * * @param serviceOptions - Service options (apiClient, apiConfig, updateConfigOptions) * @param mutationOptions - React Query mutation options * @returns React Query mutation result * * @example * ```typescript * const { mutate, isPending } = useDeleteFile(); * * const handleDelete = (fileId: string) => { * mutate({ id: fileId }, { * onSuccess: () => { * toast.success('File deleted'); * }, * onError: (error) => { * toast.error(`Failed to delete: ${error.message}`); * } * }); * }; * ``` */ export declare function useDeleteFile(serviceOptions?: ServiceOptions, mutationOptions?: Parameters>>[1]): ReturnType>>; //# sourceMappingURL=useDeleteFile.d.ts.map