import type { InputBaseProps } from '../input-base/InputBase'; export declare enum FileInputErrorType { ALREADY_UPLOADED = "ALREADY_UPLOADED", EXCEED_MAX_FILE_SIZE = "EXCEED_MAX_FILE_SIZE", EXCEED_MAX_FILE_COUNT = "EXCEED_MAX_FILE_COUNT" } export interface InvalidFile extends Omit { errorType: FileInputErrorType; } export interface FileInputProps extends Omit { /** * Accepted file types * e.g. '.jpg,.png,.pdf' or 'image/*' */ accept?: string; /** * Maximum number of files */ maxFileCount?: number; /** * Maximum file size in bytes */ maxFileSize?: number; /** * Current files (controlled mode) */ value?: File[]; /** * Callback when files change (controlled mode) */ onChange?: (files: File[]) => void; /** * Callback when files are selected (uncontrolled mode) */ onFileSelect?: (files: File[]) => void; /** * Callback when file selection fails */ onFail?: (files: InvalidFile[]) => void; /** * Label shown on the button */ buttonLabel?: string; /** * Hint text items to display as a list */ hintItems?: string[]; /** * Whether the input is required */ isRequired?: boolean; /** * Whether to show the help icon */ showHelpIcon?: boolean; /** * Hint text to display */ hintText?: string; /** * Whether to render the built-in file tag list * * Set to `false` when the file list is rendered outside the component — * the selected files still arrive through `onChange` / `onFileSelect`, and * file count/duplicate validation keeps working. */ showFileTags?: boolean; } export declare const FileInput: import("react").ForwardRefExoticComponent>;