import { ButtonProps, UploadProps } from "antd"; import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@pankod/refine-core"; /** * `useImport` hook allows you to handle your csv import logic easily. * * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/import/useImport} for more details. * * @typeParam TItem - Interface of parsed csv data * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`} * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`} * @typeParam TVariables - Values for mutation function * */ export declare const useImport: ({ resourceName, mapData, paparseOptions, batchSize, onFinish, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions) => Omit, "handleChange" | "inputProps"> & { uploadProps: UploadProps; buttonProps: ButtonProps; }; //# sourceMappingURL=index.d.ts.map