import * as fs from "fs"; export declare function isObject(value: unknown): value is Record; export declare function slash(p: string): string; export declare const isWindows: boolean; export declare function normalizePath(id: string): string; export declare function tryStatSync(file: string): fs.Stats | undefined; export declare function stripBomTag(content: string): string; export declare function findNearestNodeModules(basedir: string): string | null; export declare function fetchRemoteCacheSpecs(outDir: string): Promise; export declare const findRealPath: (configDir: string, pluginPath: string) => any; export declare const loadPresetPluginPath: (presetPath: string, pluginPath: string) => any; /** * 动态加载模块,支持 CommonJS 和 ESM 格式 * 清除模块缓存以确保获取最新版本 * @param modulePath 模块路径 * @returns 加载的模块内容 */ export declare const requireUncached: (modulePath: string) => Promise; export declare function clearPath(basePath: string): Promise; export declare function lookForFiles(dir: string, fileName: string): Promise; export declare function noOp(): void; export declare function asyncNoOp(): Promise;