/*! * devextreme-react * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ import * as React from "react"; import { Ref, ReactElement } from "react"; import dxFileUploader, { Properties } from "devextreme/ui/file_uploader"; import { IHtmlOptions } from "./core/component"; import type { BeforeSendEvent, ContentReadyEvent, DisposingEvent, DropZoneEnterEvent, DropZoneLeaveEvent, FilesUploadedEvent, InitializedEvent, ProgressEvent, UploadAbortedEvent, UploadedEvent, UploadErrorEvent, UploadStartedEvent, ValueChangedEvent } from "devextreme/ui/file_uploader"; type ReplaceFieldTypes = { [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P]; }; type IFileUploaderOptionsNarrowedEvents = { onBeforeSend?: ((e: BeforeSendEvent) => void); onContentReady?: ((e: ContentReadyEvent) => void); onDisposing?: ((e: DisposingEvent) => void); onDropZoneEnter?: ((e: DropZoneEnterEvent) => void); onDropZoneLeave?: ((e: DropZoneLeaveEvent) => void); onFilesUploaded?: ((e: FilesUploadedEvent) => void); onInitialized?: ((e: InitializedEvent) => void); onProgress?: ((e: ProgressEvent) => void); onUploadAborted?: ((e: UploadAbortedEvent) => void); onUploaded?: ((e: UploadedEvent) => void); onUploadError?: ((e: UploadErrorEvent) => void); onUploadStarted?: ((e: UploadStartedEvent) => void); onValueChanged?: ((e: ValueChangedEvent) => void); }; type IFileUploaderOptions = React.PropsWithChildren & IHtmlOptions & { defaultValue?: Array; onValueChange?: (value: Array) => void; }>; interface FileUploaderRef { instance: () => dxFileUploader; } declare const FileUploader: (props: React.PropsWithChildren & { ref?: Ref; }) => ReactElement | null; export default FileUploader; export { FileUploader, IFileUploaderOptions, FileUploaderRef }; import type * as FileUploaderTypes from 'devextreme/ui/file_uploader_types'; export { FileUploaderTypes };