interface AbstractPorter { packet: { transpiler: string; transpilerVersion: string; transpilerOpts: Record; }; uglifyOptions?: Record; } /** * Cache transpilation results of module */ export default class Cache { path: string; clean: boolean; salt: string; reloaded: boolean; version: string; constructor({ path: cachePath, identifier, clean }: { path: string; identifier?: () => string; clean?: boolean; }); identifier(app: AbstractPorter): string; digest(source: string): string; get(key: string, source: string): Promise | undefined>; set(key: string, source: string, result: Record): Promise; remove(key: string): Promise; prepare({ packet }: AbstractPorter): Promise; } export {};