import { DependenciesMapType } from "./parse"; interface FileRefCurrent { appEntryRelatedFilesMap?: Record; allDependenciesMap?: DependenciesMapType; patchFilesMap: Record; usingComponentsCopiedFilesMap: Record; patchImportAbsoluteMap: Record; } export declare const fileRef: { current: FileRefCurrent; }; export interface SubsRefCurrent { subsMap?: Record; appEntryRequirePath?: string; } export declare function getExtname(filePath: string): string; export declare function getFileName(filePath: string, hasExtname?: boolean): string; export declare function splitFileExtName(filePath: string): string[]; export declare const getPathPure: (fullPath: any) => any; export declare const subsRef: { current: SubsRefCurrent; }; export declare function requireExtend(modulePath: any, noCache?: boolean): any; export declare function patchDestPath(filePath: string, root: string): string; export declare function isDirectory(p: any): any; /** * * @description 获取文件所在文件夹 * @param filePath * @returns */ export declare function getFilePathDir(filePath: string): string; /** * * @description 获取相对路径 * @param from 文件路径(注意不能是文件夹路径) * @param to 文件路径 * @returns */ export declare function getRelativePath(from: string, to: string): string; export declare function copyFile(src: any, dest: any): Promise; /** * * @description 获取文件绝对链接,包括 */ export declare function getAbsolutePath(filePath: string, parentPath?: string): string; export {};