import type { LocalUploadButtonProps, LocalUploadDraggerProps, LocalUploadFile } from "./LocalUpload.type"; /** * Custom hook to handle file validation automatically. * When files with status "need-validate" are detected, it validates them * and updates their status based on the validation result. * * @param options - Configuration options * @param options.fileList - Current file list * @param options.setFileList - Function to update file list * @param options.validate - Validation function * @param options.createNewFile - Whether to create a new File object when updating (for immutability) */ export declare const useFileValidation: ({ fileList, setFileList, validate, createNewFile, }: { fileList: LocalUploadFile[]; setFileList: (files: LocalUploadFile[]) => void; validate?: LocalUploadDraggerProps["validate"] | LocalUploadButtonProps["validate"]; createNewFile?: boolean | undefined; }) => void; /** * Custom hook to clear error message when file count changes and is within the max count limit. * This hook tracks file count changes using a ref to avoid unnecessary updates. * * @param options - Configuration options * @param options.fileList - Current file list * @param options.maxCount - Maximum allowed file count * @param options.setError - Function to set error message */ export declare const useFileCountErrorClear: ({ fileList, maxCount, setError, }: { fileList: LocalUploadFile[]; maxCount: number; setError: (error: string) => void; }) => void;