import React from 'react'; import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents'; import type { MediaClient } from '@atlaskit/media-client/media-client'; import type { MediaTraceContext } from '@atlaskit/media-common/analytics/types'; import type { MediaFeatureFlags } from '@atlaskit/media-common/types'; import { type DropzoneConfig, type UploadEndEventPayload, type UploadErrorEventPayload, type UploadPreviewUpdateEventPayload, type UploadsStartEventPayload } from '../../types'; import { type LocalUploadComponentBaseProps } from '../localUploadReact'; import { type DropzoneDragEnterEventPayload, type DropzoneDragLeaveEventPayload, type LocalUploadConfig } from '../types'; import { DropzoneBase } from './DropzoneBase'; export type DropzoneProps = LocalUploadComponentBaseProps & { config: DropzoneConfig; onDrop?: () => void; /** Rejects invalid drops or retains their context until all file IDs are assigned. */ onDropWithContext?: (event: DragEvent, traceContext: MediaTraceContext) => false | void | (() => void); /** Tracks file positions independently of drag enter and leave notifications. */ onDragOver?: (event: DragEvent) => void; onDragEnter?: (payload: DropzoneDragEnterEventPayload) => void; onDragLeave?: (payload: DropzoneDragLeaveEventPayload) => void; onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void; }; export default DropzoneBase; export declare const Dropzone: React.ForwardRefExoticComponent void; onPreviewUpdate?: (payload: UploadPreviewUpdateEventPayload) => void; onEnd?: (payload: UploadEndEventPayload) => void; onError?: (payload: UploadErrorEventPayload) => void; featureFlags?: MediaFeatureFlags; } & { config: DropzoneConfig; onDrop?: () => void; /** Rejects invalid drops or retains their context until all file IDs are assigned. */ onDropWithContext?: (event: DragEvent, traceContext: MediaTraceContext) => false | void | (() => void); /** Tracks file positions independently of drag enter and leave notifications. */ onDragOver?: (event: DragEvent) => void; onDragEnter?: (payload: DropzoneDragEnterEventPayload) => void; onDragLeave?: (payload: DropzoneDragLeaveEventPayload) => void; onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void; }, keyof WithAnalyticsEventsProps> & React.RefAttributes, 'ref'> & React.RefAttributes>;