import type { IOutputFile } from '../interface'; export declare class AssetsMap extends Map { constructor(input: { [key in K]: string; } | [K, string][]); ensureGet(token: K | string): string; /** 异步地导入本地数据 */ loadFileAsync(token: K | string): Promise; /** 以 fetch 的方式进行数据传递 */ loadFileResponse(token: K | string): Promise; /** * 在浏览器等使用情况下,assets 都放置在一个路径下,所以可以使用此属性直接设置 root, * @env node 对于 node 环境用处不大 */ pathTransform?: (innerPath: string) => string; /** 重新设定内部的数据 */ redefine(input: { [key in K]: string; } | [K, string][]): void; /** 对外输出文件 */ outputFile: IOutputFile; }