/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @oncall react_native */ import type { BuildParameters, CacheData, CacheManager, CacheManagerWriteOptions, } from '../flow-types'; export interface DiskCacheConfig { buildParameters: BuildParameters; cacheFilePrefix?: string | null; cacheDirectory?: string | null; } export class DiskCacheManager implements CacheManager { constructor(options: DiskCacheConfig); static getCacheFilePath( buildParameters: BuildParameters, cacheFilePrefix?: string | null, cacheDirectory?: string | null, ): string; getCacheFilePath(): string; read(): Promise; write( getSnapshot: () => CacheData, opts: CacheManagerWriteOptions, ): Promise; end(): Promise; }