import type { CacheOptions } from "../interfaces/cache.interface"; import type { DataDocument } from "../interfaces/json-api.interface"; import type { SerializerOptions } from "../interfaces/serializer.interface"; import type { Dictionary, nullish, SingleOrArray } from "../types/global.types"; export default class Cache> { /** * The default max for document storage */ static defaultLimit: number; /** @internal The storage for the cache */ private storage; /** * The maximum amount of documents that can be storage before erasure. */ private limit; /** * The method to use in determining data equality */ private resolver; /** * Creates a {@link Cache} * * @param limit - The maximum amount of documents that can be stored before erasure. */ constructor(options?: Partial>); /** @internal Gets a document in the cache */ get(data: SingleOrArray | nullish, options?: Partial>): false | Partial>; /** @internal Sets a document in the cache */ set(data: SingleOrArray | nullish, document: Partial>, options?: Partial>): Partial>; } //# sourceMappingURL=cache.d.ts.map