mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-24 03:00:39 +08:00
9 lines
870 B
TypeScript
9 lines
870 B
TypeScript
import { CompressionMethod } from './constants';
|
|
import { ArtifactCacheEntry, InternalCacheOptions, ReserveCacheResponse, ITypedResponseWithError } from './contracts';
|
|
import { DownloadOptions, UploadOptions } from '../options';
|
|
export declare function getCacheVersion(paths: string[], compressionMethod?: CompressionMethod): string;
|
|
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>;
|