import { FetchError } from "./types/FetchError"; export type UseDeleteOptions = { onSuccess?: (res: Response) => void; onError?: (error: FetchError) => void; onResponseGot?: (url: string, endpoint: string, responseCode: number | string | undefined) => void; headers?: Record; accessTokenLocalStorageKey?: string; callRefreshToken?: () => { on: number[]; body: Record; endpoint: string; saveAccessTokenFromResponse?: (res: any) => void; }; }; export declare function useDelete(baseApiUrl: string, url: string, options?: UseDeleteOptions): { error: FetchError | undefined; loading: boolean; deleteData: (id?: number | string) => Promise; };