import type { FileRowData } from '../../molecules/FileRow/FileRow.svelte'; export type FileManagerView = 'list' | 'grid'; export type FileManagerSort = 'name' | 'modified' | 'size' | 'type'; export interface FileManagerFolder { id: string; label: string; parentId?: string | null; } export interface FileManagerItem extends FileRowData { folderId?: string; modified?: string; starred?: boolean; } interface FileManagerProps { title?: string; folders?: FileManagerFolder[]; files?: FileManagerItem[]; /** Active nav: `all` | `starred` | `recent` | folder id */ folderId?: string; view?: FileManagerView; sort?: FileManagerSort; showSidebar?: boolean; /** Right details pane when a single file is focused */ showDetails?: boolean; showDropZone?: boolean; class?: string; onupload?: (files?: File[]) => void; onfolderchange?: (id: string) => void; ondownload?: (file: FileManagerItem) => void; ondelete?: (ids: string[]) => void; onopen?: (file: FileManagerItem) => void; } declare const FileManager: import("svelte").Component; type FileManager = ReturnType; export default FileManager;