type SendFn = (msg: Record) => void; export declare function handleListDirectory(msg: { dirPath: string; source?: string; }, workDir: string, send: SendFn): Promise; export declare function listDirectoryEntries(dirPath: string): Promise<{ name: string; type: string; }[]>; export declare function handleReadFile(msg: { filePath: string; source?: string; requestId?: string; }, workDir: string, send: SendFn): Promise; export declare function handleChangeWorkDir(msg: { workDir: string; }, state: { workDir: string; }, send: SendFn): void; export declare function handleUpdateFile(msg: { filePath: string; content: string; }, workDir: string, send: SendFn): Promise; export declare function handleCreateFile(msg: { dirPath: string; fileName: string; }, workDir: string, send: SendFn): Promise; export declare function handleCreateDirectory(msg: { dirPath: string; dirName: string; }, workDir: string, send: SendFn): Promise; export declare function handleUploadFile(msg: { targetDir: string; fileName: string; content: string; size: number; overwrite?: boolean; }, workDir: string, send: SendFn): Promise; export declare function handleDeleteFile(msg: { filePath: string; }, workDir: string, send: SendFn): Promise; export declare function handleUploadFileChunk(msg: { targetDir: string; fileName: string; chunkIndex: number; totalChunks: number; content: string; size: number; overwrite?: boolean; }, workDir: string, send: SendFn): Promise; export declare function handleDownloadChunkAck(msg: { filePath: string; chunkIndex: number; }): void; export declare function handleDownloadFile(msg: { filePath: string; }, workDir: string, send: SendFn): Promise; export {};