import * as React from 'react'; import { GroupedFiles } from './interfaces/FileGroup'; import { UploadAsyncProps } from './interfaces/UploadAsyncProps'; import { UploadListItemProps } from './interfaces/UploadListItemProps'; /** * @hidden */ export interface UploadUIProps extends UploadAsyncProps { className?: string; multiple?: boolean; disabled?: boolean; showFileList?: boolean; showActionButtons?: boolean; tabIndex?: number; accept?: string; groupedFiles: GroupedFiles; navigationIndex?: number; notFocusedIndex?: number; listItemUI?: React.ComponentType; id?: string; ariaLabelledBy?: string; ariaDescribedBy?: string; onAdd?: (files: FileList) => void; onCancel?: (uid: string) => void; onRemove?: (uid: string) => void; onRetry?: (uid: string) => void; onUpload?: () => void; onClear?: () => void; onFocus?: (event: React.FocusEvent) => void; onBlur?: (event: React.FocusEvent) => void; onKeyDown?: (event: React.KeyboardEvent, isRtl: boolean) => void; onClick?: (navIndex: number | undefined) => void; } /** * @hidden */ export declare class UploadUI extends React.Component { static defaultProps: UploadUIProps; private _container; private _uploadAddButton; private readonly async; private readonly groupsCount; private readonly lastGroupIndex; private readonly addButtonIndex; private readonly clearButtonIndex; private readonly uploadButtonIndex; private readonly isRtl; /** * @hidden */ readonly actionElement: HTMLInputElement; /** * @hidden */ focus: () => void; /** * @hidden */ onAdd: (files: FileList) => void; /** * @hidden */ onRetry: (uid: string) => void; /** * @hidden */ onCancel: (uid: string) => void; /** * @hidden */ onClear: () => void; /** * @hidden */ onUpload: () => void; /** * @hidden */ onRemove: (uid: string) => void; /** * @hidden */ onKeyDown: (event: React.KeyboardEvent) => void; /** * @hidden */ onFocus: (event: React.FocusEvent) => void; /** * @hidden */ onBlur: (event: React.FocusEvent) => void; /** * @hidden */ onClick: (navIndex: number) => void; /** * @hidden */ render(): JSX.Element; }