/**
 * FileManager 相关类型定义
 */

export interface UploadPanelProps {
    serverId: number;
    currentPath: string;
    onUploadComplete: () => void;
}

export interface UploadFileItem {
    file: File;
    id: string;
    status: 'pending' | 'uploading' | 'success' | 'error';
    progress: number;
    errorMessage?: string;
}

export interface ServerFilePanelProps {
    serverId: number;
    currentPath: string;
    onPathChange: (path: string) => void;
    refreshTrigger: number;
}

export interface FileManagerProps {
    serverId: number;
    serverName: string;
    open: boolean;
    onClose: () => void;
    onMinimize: () => void;
    isActive: boolean;
    onFocus: () => void;
}
