import { QueryObserverResult, UseQueryOptions } from 'react-query'; import { ArgsProps } from 'antd/lib/notification'; import { CustomResponse, CrudSorting, CrudFilters, BaseRecord, HttpError, MetaDataQuery } from '../../interfaces'; interface UseCustomConfig { sort?: CrudSorting; filters?: CrudFilters; query?: TQuery; payload?: TPayload; headers?: {}; } export declare type UseCustomProps = { url: string; method: 'get' | 'delete' | 'head' | 'options' | 'post' | 'put' | 'patch'; config?: UseCustomConfig; queryOptions?: UseQueryOptions, TError>; successNotification?: ArgsProps | false; errorNotification?: ArgsProps | false; metaData?: MetaDataQuery; }; export declare const useCustom: ({ url, method, config, queryOptions, successNotification, errorNotification, metaData, }: UseCustomProps) => QueryObserverResult, TError>; export {};