import React from "react"; import type { TreeNode, ResourceMeta } from "./use-resources.js"; export interface ResourceTreeProps { tree: TreeNode[]; /** Presentation mode for the resources: nested tree rows or a flat collection. */ variant?: "tree" | "collection"; selectedId: string | null; onSelect: (resource: ResourceMeta) => void; onCreateFile: (parentPath: string, name: string) => void; onCreateFolder: (parentPath: string, name: string) => void; onDelete: (id: string) => void; onRename: (id: string, newPath: string) => void; onDrop: (files: FileList) => void; /** Section title displayed as heading */ title?: string; /** Tooltip for the section heading */ titleTooltip?: string; /** Whether this section's tree is still loading */ isLoading?: boolean; /** Resource id currently being deleted (shows spinner + muted row) */ deletingId?: string | null; /** When true, hide create/delete/rename/upload affordances. Files stay readable. */ readOnly?: boolean; /** Optional hint shown next to the heading (e.g. "Read only") */ headingHint?: React.ReactNode; /** Scope-specific action shown beside the section heading. */ sectionAction?: React.ReactNode; /** Scope-specific action shown beneath an empty collection message. */ emptyStateAction?: React.ReactNode; } export declare function ResourceTree({ tree, variant, selectedId, onSelect, onCreateFile, onCreateFolder, onDelete, onDrop, title, titleTooltip, isLoading, deletingId, readOnly, headingHint, sectionAction, emptyStateAction, }: ResourceTreeProps): React.JSX.Element; //# sourceMappingURL=ResourceTree.d.ts.map