import { DirectoryEntry, FileBrowserLabels } from "./types.js"; import * as react_jsx_runtime0 from "react/jsx-runtime"; //#region src/react/file-browser/directory-list.d.ts /** Props for the DirectoryList component */ interface DirectoryListProps extends Omit, "children"> { /** Directory entries to display */ entries: DirectoryEntry[]; /** Whether the directory is currently loading */ loading?: boolean; /** Error message to display */ error?: string | null; /** Called when an entry is clicked */ onEntryClick: (entry: DirectoryEntry) => void; /** Called when the back/parent button is clicked */ onNavigateToParent?: () => void; /** Called when the retry button is clicked */ onRetry?: () => void; /** Whether the user is at the root directory (hides back button) */ isAtRoot?: boolean; /** Currently selected file path for highlighting */ selectedPath?: string | null; /** Resolves a DirectoryEntry to its full path */ resolveEntryPath: (entry: DirectoryEntry) => string; /** Content rendered between the back button and the entry list (e.g., NewFolderInput) */ headerContent?: React.ReactNode; /** Whether a current path is set (affects empty state message) */ hasCurrentPath?: boolean; /** Custom file size formatter */ formatSize?: (bytes: number | undefined) => string; /** Customizable labels */ labels?: Pick; } /** Card-wrapped directory listing with loading, error, and empty states */ declare function DirectoryList({ entries, loading, error, onEntryClick, onNavigateToParent, onRetry, isAtRoot, selectedPath, resolveEntryPath, headerContent, hasCurrentPath, formatSize, labels, className, ...props }: DirectoryListProps): react_jsx_runtime0.JSX.Element; //#endregion export { DirectoryList, DirectoryListProps }; //# sourceMappingURL=directory-list.d.ts.map