import type { BundleRequest } from '../types/BundleRequest.js'; import type { RemoteCacheClient } from '@ms-cloudpack/remote-cache'; import type { PartialContext } from '../types/Context.js'; import type { TargetEnvironment } from '@ms-cloudpack/common-types'; /** * Reads the `result.json` file from the cache, and construct a BundleRequest.result object from it. * If the package wasn't already cached and `context.remoteCacheClient` is set, attempts to download it. */ export declare function readResultFromCache(params: { packageName: string; version: string; /** Package path (will be added to the result). */ inputPath: string; /** The path to the cache directory. */ outputPath: string; targetEnvironment: TargetEnvironment; /** If provided, and the package isn't found locally, attempt to download it. */ remoteCacheClient?: RemoteCacheClient; }, context: PartialContext<'packageHashes' | 'packages', 'cachePath'>): Promise; //# sourceMappingURL=readResultFromCache.d.ts.map