import { type JSX } from 'react'; import type { TreeNode, TStorage, UploadNode } from './lib/types.js'; declare const SIDEBAR_WIDTH_STORAGE_KEY = "fileExplorerSidebarWidth"; declare const SIDEBAR_WIDTH_DEFAULT = 300; declare const GROUP_BY_STORAGE_KEY = "fileExplorerGroupBy"; declare function getNodeIcon(node: TreeNode): JSX.Element | null; declare function renderUploadNodes(uploadNodes: UploadNode[]): JSX.Element[]; declare function NoFileSelectedPreview(): JSX.Element; /** Shown instead of a skeleton that has nothing left to wait for. */ declare function NotFoundPreview({ path, onRetry }: { path: string; onRetry: () => void; }): JSX.Element; export type CorsAwareRefresh = (opts?: { silent?: boolean; }) => Promise<{ corsError: boolean; } | void>; declare function CorsIssuePreview({ selectedStorage, onRefresh, }: { selectedStorage: TStorage | null; onRefresh?: CorsAwareRefresh | undefined; }): JSX.Element; declare function CorsPropagatingPreview(): JSX.Element; declare function NoDataAvailablePreview({ selectedStorage, error, onRefresh, connectionIssueMessage, connectionIssueDetail, className, canWrite, }: { selectedStorage: TStorage | null; error?: Error | null; onRefresh?: CorsAwareRefresh; connectionIssueMessage?: string | null | undefined; /** The error's own text, shown under the message as technical detail. */ connectionIssueDetail?: string | undefined; className?: string; canWrite?: boolean; }): JSX.Element; declare function SkeletonPreview(): JSX.Element; interface IDragDropZoneProps { onDropFiles?: ((files: FileList | DataTransferItemList) => void) | undefined; children: React.ReactNode; className?: string; } declare function DragDropZone({ onDropFiles, children, className }: IDragDropZoneProps): JSX.Element; interface IShareFileButtonProps { node: TreeNode; onShare: (node: TreeNode) => Promise; } declare function ShareFileButton({ node, onShare }: IShareFileButtonProps): JSX.Element; export { CorsIssuePreview, CorsPropagatingPreview, DragDropZone, GROUP_BY_STORAGE_KEY, getNodeIcon, NoDataAvailablePreview, NoFileSelectedPreview, NotFoundPreview, renderUploadNodes, ShareFileButton, SIDEBAR_WIDTH_DEFAULT, SIDEBAR_WIDTH_STORAGE_KEY, SkeletonPreview, };