import FileTreeNode from '../model/FileTreeNode'; export declare const noop: () => void; export interface Dictionary { [key: string]: T; } export declare function getFileIndex(fileRoot: Array): {}; export declare function getParentPath(currentPath: string | null): string; export declare function iterateFile(fileRoot: FileTreeNode, callback: ((FileTreeNode: any) => boolean | void)): void; export declare function getFileTreeByPlainPathArray(files: Array<{ code: string; path: string; }>): FileTreeNode[] | undefined; export declare function violentlyAddNodeToFileTree(treeRoot: FileTreeNode, newFilePath: string, newFileCode: string, isDirectory?: boolean): void; export declare function deleteFileOnTree(currentLevelFiles: Array, targetFilePath: string): { files: any; filesDeleted: (string | undefined)[]; }; /** * 计算关闭一堆tab以后,打开哪个tab * @param tabItems 当前所有的tab * @param currentOpen 当前打开的tab * @param filesToClose 要关闭的tab */ export declare function findNextFileToOpenOnTabClose(tabItems: Array, currentOpen: string, filesToClose: Array): string | null;