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