import type { CSSProperties, ElementType, PropsWithChildren } from 'react'; export declare const useDragAndDropUploadContext: () => { subscribeToDrop: ((fn: (files: File[]) => void) => () => void) | null; }; /** * Registers the composer's `attachmentManager.uploadFiles` as a drop handler of the enclosing * `WithDragAndDropUpload`. Call it once, directly in `MessageComposerProvider`. * * @private */ export declare const useRegisterDropHandlers: () => void; /** * Wraps its children in a drop zone that uploads dropped files to the message composers inside it. * The accepted file types come from the composer config (`attachments.acceptedFiles`), and the * overlay shown while dragging is the `FileDragAndDropContent` slot. * * @example * ```tsx * * * * * * * ``` */ export declare const WithDragAndDropUpload: ({ children, className, component: Component, style, }: PropsWithChildren<{ /** * @description Element rendered as the wrapper that handles drag and drop. * @default 'div' */ component?: ElementType; className?: string; style?: CSSProperties; }>) => import("react/jsx-runtime").JSX.Element; export type FileDragAndDropContentProps = { isDragRejected: boolean; }; export declare const FileDragAndDropContent: ({ isDragRejected, }: FileDragAndDropContentProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=WithDragAndDropUpload.d.ts.map