export type RemoteCacheClientOperationResult = 'success' | 'not-found' | 'already-exist'; export interface RemoteCacheClientOperationOptions { /** * The unique identifier of the asset */ id: string; /** * Local path to the asset */ path: string; /** * The friendly name of the asset to be used in logs */ friendlyName: string; } export interface RemoteCacheClientUploadOperationOptions extends RemoteCacheClientOperationOptions { /** The glob pattern to use when uploading the folder. */ globMatches: string[]; } export interface RemoteCacheClient { /** * Uploads the folder to the remote cache. * @returns * - `'not-found'` if the path does not exist locally * - `'already-exist'` if a resource with the same id already exists in the remote cache * - `'success'` if the upload was successful */ uploadFolder(options: RemoteCacheClientUploadOperationOptions): Promise; /** * Downloads the folder from the remote cache. * @returns * - `'already-exist'` if the specified path already exists locally * - `'not-found'` if the asset is not found in the remote cache * - `'success'` if the download was successful */ downloadFolder(options: RemoteCacheClientOperationOptions): Promise; } //# sourceMappingURL=RemoteCacheClient.d.ts.map