import { type QueryClient } from "@tanstack/react-query"; import type { Endpoint } from "../../../types/misc"; import type { UseDestroyOptions, UseDestroyResult, UseDestroyException, UseDestroyHTTPError } from "./use-destroy.types"; /** Allows to perform `DELETE` requests. */ export declare const useDestroy: (url: Endpoint, config: UseDestroyOptions, queryClient?: QueryClient) => UseDestroyResult; /** Checks if the error was raised by Axios. */ export declare const isDestroyError: (error: UseDestroyException | null) => error is UseDestroyHTTPError;