2022-07-12 09:00:22 +02:00
|
|
|
import { CompressionMethod } from './constants';
|
|
|
|
import { ArtifactCacheEntry, InternalCacheOptions, ReserveCacheResponse, ITypedResponseWithError } from './contracts';
|
|
|
|
import { DownloadOptions, UploadOptions } from '../options';
|
2023-02-22 17:47:24 -08:00
|
|
|
export declare function getCacheVersion(paths: string[], compressionMethod?: CompressionMethod, enableCrossOsArchive?: boolean): string;
|
2022-07-12 09:00:22 +02:00
|
|
|
export declare function getCacheEntry(keys: string[], paths: string[], options?: InternalCacheOptions): Promise<ArtifactCacheEntry | null>;
|
|
|
|
export declare function downloadCache(archiveLocation: string, archivePath: string, options?: DownloadOptions): Promise<void>;
|
|
|
|
export declare function reserveCache(key: string, paths: string[], options?: InternalCacheOptions): Promise<ITypedResponseWithError<ReserveCacheResponse>>;
|
|
|
|
export declare function saveCache(cacheId: number, archivePath: string, options?: UploadOptions): Promise<void>;
|