import { default as React } from 'react'; import { ButtonVariant } from '../Button'; import { IconName } from '../Icon'; export type UploadButtonProps = { /** * One or more unique file type specifiers describing file types to allow. * Cf https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers */ accept?: string; /** * aria-label for the input. */ ariaLabel?: string; /** * className for the element. */ className?: string; /** * Specifies the width of the element. */ fit?: 'content' | 'parent'; /** * Whether the button should have no horizontal padding. Has effect only on tertiary variant * @default false */ hasNoHorizontalPadding?: boolean; /** * Whether the button should be disabled. */ isDisabled?: boolean; /** * Be able to select more than one file. * @default false */ isMultiple?: boolean; /** * The text to display in the button. */ text: string; /** * The visual style of the button * @default primaryBrand */ variant?: ButtonVariant; /** * Handler that is called when a file is submitted. */ onUpload(files: FileList | null): void | Promise; /** * The icon to display in the button. */ iconName?: IconName; /** * Specifies where the icon is positioned. */ iconPosition?: 'left' | 'right'; }; export declare const UploadButton: ({ accept, ariaLabel, className, fit, hasNoHorizontalPadding, isDisabled, isMultiple, text, variant, onUpload, ...rest }: UploadButtonProps) => React.JSX.Element; //# sourceMappingURL=UploadButton.d.ts.map