import { FileType } from "types"; export interface RunParseReturn { dependencies?: string[]; ast?: any; type: FileType; config?: any; configRequirePath?: string; source: string; isUpdate?: boolean; configCreated?: boolean; update?: (cfg: any) => void; } export interface DependenciesMapItemType extends RunParseReturn { copied?: boolean; root?: string; parents?: Set; dependenciesResolveMap?: Record; dependenciesFilePathChange?: boolean; } export declare type DependenciesMapType = Record; export declare const notFound = "./404"; /** * * @description 解析引入 * @param param0 * @param callback */ export declare function parseImport(opts: { ast: any; create?: any; code?: string; }, callback: (opts: { SetImportValue: (val: string) => void; value: string; }) => void): Promise<(c: any) => Promise>; /** * * @description 开始解析 * @returns */ export declare function runParse(filePath: string, fileType?: FileType): Promise; /** * * @description 依赖关系路径处理为绝对路径:过滤掉npm包依赖,不做处理 * @param dependencies 依赖关系列表 * @param parentPath 相对路径 */ export declare function resolveDependenciesPath(dependencies: string[], parentPath?: string): string[][];