import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query"; import { BaseRecord, BaseKey, GetManyResponse, HttpError, MetaDataQuery, LiveModeProps, SuccessErrorNotification } from "../../interfaces"; export declare type UseManyProps = { /** * Resource name for API data interactions */ resource: string; /** * ids of the item in the resource * @type [`BaseKey[]`](/docs/api-reference/core/interfaceReferences/#basekey) */ ids: BaseKey[]; /** * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options */ queryOptions?: UseQueryOptions, TError>; /** * Metadata query for `dataProvider`, */ metaData?: MetaDataQuery; /** * If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use. * @default "default" */ dataProviderName?: string; } & SuccessErrorNotification & LiveModeProps; /** * `useMany` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/guides/queries `useQuery`} used for retrieving multiple items from a `resource`. * * It uses `getMany` method as query function from the `dataProvider` which is passed to ``. * * @see {@link https://refine.dev/docs/core/hooks/data/useMany} for more details. * * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`} * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`} * */ export declare const useMany: ({ resource, ids, queryOptions, successNotification, errorNotification, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseManyProps) => QueryObserverResult, unknown>; //# sourceMappingURL=useMany.d.ts.map