import { type ReactNode } from "react"; export declare function carriesFiles(event: { dataTransfer: DataTransfer | null; }): boolean; /** A chat that takes files dropped elsewhere in the view around it. */ export type ChatFileDropTargetHandle = Readonly<{ /** Attach dropped files, as a drop on the chat itself does. */ attach: (files: FileList) => void; /** Show or clear the chat's drop overlay while a drag is over the other place. */ highlight: (on: boolean) => void; }>; /** * Where a view that shows a chat beside other content (the Site view) learns * which chat takes the files dropped on that content. The chat's own drop * target registers while it accepts files. */ export declare class ChatFileDropRelay { #private; register(target: ChatFileDropTargetHandle): () => void; readonly current: () => ChatFileDropTargetHandle | null; readonly subscribe: (listener: () => void) => (() => void); } export declare function ChatFileDropRelayProvider(props: { relay: ChatFileDropRelay; children?: ReactNode; }): import("react").JSX.Element; /** Whether files are being dragged over this page (not counting embedded frames). */ export declare function useFileDragOverPage(): boolean; /** * Covers content beside a chat, such as a Site's preview frame, while files * are dragged over the page, so a drop there attaches to the chat instead of * going to the frame (or opening the file). Place it in a positioned parent. * It shows only while a chat in the same relay takes files. */ export declare function ChatFileDropCover(props: { relay: ChatFileDropRelay; enabled: boolean; }): import("react").JSX.Element | null; export declare function ChatViewportFileDropTarget({ children, enabled, onFiles, className, "data-workspace-scroll-owner": scrollOwner, }: { children: ReactNode; enabled: boolean; onFiles: (files: FileList) => void; className?: string | undefined; "data-workspace-scroll-owner": "self-managed"; }): import("react").JSX.Element;