import { Favorite, FileCreateRequest, FileStatusEnum } from '../../types/openapi'; import { RecentFile } from './recentFiles.types'; import { CompactFile, CompactFolder } from '../apps/browser/stores/api'; export interface DeviceFileCreateRequest extends Omit { path: string; } export type AllFileCreateRequest = FileCreateRequest | DeviceFileCreateRequest; export declare enum ViewCompactItemType { File = "file", Folder = "folder", SmartFolder = "smart_folder" } export type ViewCompactFile = Omit & { type: ViewCompactItemType.File; favoriteId?: Favorite['id']; createdBy: string; content_type?: string; }; export type ViewCompactFolder = Omit & { type: ViewCompactItemType.Folder; favoriteId?: Favorite['id']; content_type?: null; thubmnail_url?: null; file_thumbnail_urls?: string[]; folders_count?: number; files_count?: number; available_folders_count?: number; available_files_count?: number; status?: string; }; export interface DeviceFile { name: string; type: string; path: string; size: number; } export type ViewCompactFileFolder = ViewCompactFolder | ViewCompactFile; export type RenderableFile = (Favorite & { thumbnail_url?: string; file_thumbnail_urls?: string[]; status?: FileStatusEnum; }) | RecentFile | ViewCompactFileFolder;