UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

52 lines (44 loc) 1.05 kB
import { LocalFileItem, LocalMoveFilesResultItem, LocalReadFileResult, } from '@lobechat/electron-client-ipc'; export interface FileResult { contentType?: string; createdTime: Date; isDirectory: boolean; lastAccessTime: Date; // Spotlight specific metadata metadata?: { [key: string]: any; }; modifiedTime: Date; name: string; path: string; size: number; type: string; } export interface LocalFileSearchState { searchResults: LocalFileItem[]; } export interface LocalFileListState { listResults: LocalFileItem[]; } export interface LocalReadFileState { fileContent: LocalReadFileResult; } export interface LocalReadFilesState { filesContent: LocalReadFileResult[]; } export interface LocalMoveFilesState { error?: string; results: LocalMoveFilesResultItem[]; // Overall error for the operation if it fails before individual processing successCount: number; totalCount: number; } export interface LocalRenameFileState { error?: string; newPath: string; oldPath: string; success: boolean; }