import type { TranspileOptions } from 'typescript'; /** * 默认异步加载器 */ export declare const fileLoaders: Readonly<{ readonly '.mjs': typeof loadJs; readonly '.cjs': typeof loadJs; readonly '.js': typeof loadJs; readonly '.ts': typeof loadTs; readonly '.json': typeof loadJson; readonly '.yaml': typeof loadYaml; readonly '.yml': typeof loadYaml; }>; /** * 默认同步加载器 */ export declare const fileLoadersSync: Readonly<{ readonly '.cjs': typeof loadJsSync; readonly '.js': typeof loadJsSync; readonly '.ts': typeof loadTsSync; readonly '.json': typeof loadJsonSync; readonly '.yaml': typeof loadYamlSync; readonly '.yml': typeof loadYamlSync; }>; /** * 加载 js 文件 * @param path 文件路径 */ export declare function loadJs(path: string): Promise; /** * 加载 js 文件 * @param path 文件路径 */ export declare function loadJsSync(path: string): T; /** * 加载 ts 文件 * @param path 文件路径 */ export declare function loadTs(path: string): Promise; /** * 加载 ts 文件 * @param path 文件路径 */ export declare function loadTsSync(path: string): T; /** * 加载 json 文件 * @param path 文件路径 */ export declare function loadJson(path: string): Promise; /** * 加载 json 文件 * @param path 文件路径 */ export declare function loadJsonSync(path: string): T; /** * 加载 yaml 文件 * @param path 文件路径 */ export declare function loadYaml(path: string): Promise; /** * 加载 yaml 文件 * @param path 文件路径 */ export declare function loadYamlSync(path: string): T; /** * 解析 tsconfig 文件 * @param dir 文件夹 */ export declare function resolveTsConfig(dir: string): TranspileOptions; //# sourceMappingURL=loader.d.ts.map