import { FileActions } from '@viasat/beam-shared/components/fileUpload'; import { FormValidator } from '@viasat/beam-shared/components/form'; import { ThemeTypes } from '@viasat/beam-shared/utils/constants'; import { BmFormContext } from '../Form/Form.context'; import { FormField } from '../Form/Form.decorator'; import { BmFileUploadButton } from './FileUpload.Button'; import { BmFileUploadDropzone } from './FileUpload.Dropzone'; export declare class BmFileUploadFileSelectedEvent extends CustomEvent<{ file: File; actions: FileActions; abortSignal: AbortSignal; }> { constructor(file: File, actions: FileActions, abortSignal: AbortSignal); } /** * `bm-file-upload` * * @fires bm-selected - Dispatched when a file is uploaded. Preventing default on this event will make upload asynchronous * @slot label - Specify Label for for FileUpload * @slot helper-text - Specify HelperText for FileUpload */ export declare class BmFileUpload extends FormField { #private; static styles: import('lit').CSSResult; /** * Specify what types of files can be uploaded */ accept?: string; /** * Specify error text and display error state of FileUpload */ error?: string | boolean; /** * Specify if FileUpload is in disabled state */ disabled?: boolean; /** * Specify if more than one file can be can be uploaded * @default false */ multiple?: boolean; /** * Specify how many files can be uploaded */ fileLimit?: number; /** * Specify the maximum file size that can be uploaded */ maxFileSize?: number; /** * Specify if FileUpload is a required input * @default false */ required?: boolean; /** * Specify if FileUpload is in read-only state */ readOnly?: boolean; /** * Specify if FileUpload displays with an asterisk * @default false */ hideRequiredMarker?: boolean; /** * Specify form validation rules for FileUpload */ validationRules: Array; /** * Specify if FileUpload is fluid * @default false */ fluid?: boolean; /** * Specify the width of FileUpload */ width?: string; /** * Specify the theme of the FileUpload. By default it inherits the theme from the parent */ theme?: ThemeTypes; formContext: BmFormContext; private fileUploadContext; pickerRef: import('lit-html/directives/ref').Ref; private _textFieldLabel; private _textFieldHelperText; private filesState; willUpdate(): void; firstUpdated(): void; updated(changedProps: Map): void; formAssociatedCallback(): void; formResetCallback(): void; private _hasPickerSlot; private _hasFilesListSlot; render(): import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'bm-file-upload': BmFileUpload; } } //# sourceMappingURL=FileUpload.d.ts.map