import { DropzoneElement, DropzoneOptions } from "@scoped-elements/dropzone"; import { FormField, FormFieldController } from "@holochain-open-dev/elements"; import { FileStorageClient } from "../file-storage-client.js"; import { EntryHash } from "@holochain/client"; /** * @fires file-uploaded - Fired after having uploaded the file * @csspart dropzone - Style the dropzone itself */ export declare class UploadFiles extends DropzoneElement implements FormField { /** * The name of the field if this element is used inside a form * Required only if the element is used inside a form */ name: string; /** * Whether this field is required if this element is used inside a form */ required: boolean; /** * Whether this field is disabled if this element is used inside a form */ disabled: boolean; /** * The default value that this element will take if it is resetted in a form */ defaultValue: EntryHash | Array; /** Public attributes */ /** * Whether this element should allow only file to be uploaded */ oneFile: boolean; /** * The type of files accepted by this element * Learn how to use this here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept */ acceptedFiles: string | undefined; /** * @internal */ _client: FileStorageClient; /** * @internal */ _controller: FormFieldController; firstUpdated(): Promise; reset(): Promise; /** * @internal */ get value(): any; /** * @internal */ private _input; reportValidity(): boolean; buildDropzone(dropzoneElement: HTMLElement, options: DropzoneOptions): Dropzone; render(): import("lit").TemplateResult<1>; static get styles(): (any[] | import("lit").CSSResult)[]; }