export interface ImageFileUploadProps { /** * The name of the file input. */ name: string; /** * The maximum file size in bytes. */ maxFileSize?: number; /** * The accepted file types. Defaults to `image/*`. * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers */ accept?: string; /** * Indicates whether to show the drop zone. Defaults to `true`. */ dropZone?: boolean; /** * The message to show when there are no selected files. */ emptyLabel?: string; /** * The label for the choose file button. Defaults to `Upload`. */ chooseFileLabel?: string; } export interface FileSelectedEvent { originalEvent: Event; file?: File; } export interface ImageFileEmits { /** * Emitted when a file is selected. * * | Event Property | Type | Description | * | --------------- | ------- | ----------- | * | originalEvent | Event | The original event. | * | file | File / `undefined` | The selected file or `undefined` if the selected file exceeds the maxFileSize or is an invalid file type. | * * @event fileSelected */ (e: 'fileSelected', $event: FileSelectedEvent): void; } declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption, { maxFileSize: number; dropZone: boolean; accept: string; chooseFileLabel: string; emptyLabel: string; }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { fileSelected: ($event: FileSelectedEvent) => void; }, string, import('vue').PublicProps, Readonly, { maxFileSize: number; dropZone: boolean; accept: string; chooseFileLabel: string; emptyLabel: string; }>>> & { onFileSelected?: (($event: FileSelectedEvent) => any) | undefined; }, { maxFileSize: number; accept: string; dropZone: boolean; emptyLabel: string; chooseFileLabel: string; }, {}>; export default _default; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; };