import { type UseMutationOptions } from "@tanstack/react-query"; import type { BaseRecord, CreateManyResponse, HttpError, IQueryKeys, MetaQuery } from "../../contexts/data/types"; import type { UseMutationResult } from "../../definitions/types"; import type { SuccessErrorNotification } from "../../contexts/notification/types"; import { type UseLoadingOvertimeOptionsProps, type UseLoadingOvertimeReturnType } from "../useLoadingOvertime"; export type UseCreateManyParams = { resource?: string; values?: TVariables[]; meta?: MetaQuery; dataProviderName?: string; invalidates?: Array; } & SuccessErrorNotification, TError, TVariables[]>; export type UseCreateManyReturnType = UseMutationResult, TError, UseCreateManyParams, unknown>; export type UseCreateManyProps = { mutationOptions?: Omit, TError, UseCreateManyParams>, "mutationFn">; } & UseLoadingOvertimeOptionsProps & UseCreateManyParams; /** * `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations. * * It uses `createMany` method as mutation function from the `dataProvider` which is passed to ``. * * @see {@link https://refine.dev/docs/api-reference/core/hooks/data/useCreateMany} 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`} * @typeParam TVariables - Values for mutation function * */ export declare const useCreateMany: ({ resource: resourceFromProps, values: valuesFromProps, dataProviderName: dataProviderNameFromProps, successNotification: successNotificationFromProps, errorNotification: errorNotificationFromProps, meta: metaFromProps, invalidates: invalidatesFromProps, mutationOptions, overtimeOptions, }?: UseCreateManyProps) => UseCreateManyReturnType & UseLoadingOvertimeReturnType; //# sourceMappingURL=useCreateMany.d.ts.map