## API Report File for "metro-cache"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

// @deprecated
export class AutoCleanFileStore<T> extends FileStore<T> {
    constructor(opts: CleanOptions);
}

class Cache_2<T> {
    constructor(stores: ReadonlyArray<CacheStore<T>>);
    get(key: Buffer): Promise<null | undefined | T>;
    get isDisabled(): boolean;
    set(key: Buffer, value: T): Promise<void>;
}
export { Cache_2 as Cache }

export interface CacheStore<T> {
    clear(): void | Promise<void>;
    get(key: Buffer): (null | undefined | T) | Promise<null | undefined | T>;
    name?: string | undefined;
    set(key: Buffer, value: T): void | Promise<void>;
}

export type FileOptions = Readonly<{root: string}>;

export class FileStore<T> {
    constructor(options: FileOptions);
    clear(): void;
    get(key: Buffer): Promise<null | undefined | T>;
    set(key: Buffer, value: T): Promise<void>;
}

export class HttpGetStore<T> extends HttpStore<T> {
    constructor(options: HttpOptions);
    get(key: Buffer): Promise<null | undefined | T>;
    set(_key: Buffer, _value: T): Promise<void>;
}

export type HttpOptions = EndpointOptions | {getOptions: EndpointOptions; setOptions: EndpointOptions};

export class HttpStore<T> {
    constructor(options: HttpOptions);
    clear(): void;
    get(key: Buffer): Promise<null | undefined | T>;
    static HttpError: typeof HttpError;
    static NetworkError: typeof NetworkError;
    set(key: Buffer, value: T): Promise<void>;
}

export interface MetroCache {
    readonly AutoCleanFileStore: typeof AutoCleanFileStore;
    readonly Cache: typeof Cache_2;
    readonly FileStore: typeof FileStore;
    readonly HttpGetStore: typeof HttpGetStore;
    readonly HttpStore: typeof HttpStore;
    readonly stableHash: typeof stableHash;
}

export function stableHash(value: unknown): Buffer;

```
