import { AuthorizationOptions, CacheItem, ItemTypes, PaginatedInstance, PaginatedRequestParams, PaginatedResponse, PaginatedType, Resolvable, ResolvableClass } from '..'; /** * @ignore */ export declare class Cache { /** * Map of resolutions separated by type. */ private static resolutionMap; /** * Map of items that are separated by which parts were requested from the API and then * their ID/URL/search query. */ private static itemMap; /** * Map of arrays of pages of items that are separated by which parts were requested * from the API and then a cache key generated from the request options. */ private static pagesMap; static setResolution(type: T, input: string, value: Resolvable, ttl: number): void; static getResolution(type: T, input: string): Resolvable; static setItem(type: ItemTypes, name: string, value: InstanceType, ttl: number, parts?: string[]): void; static setItems(type: ItemTypes, names: string[], values: InstanceType[], ttl: number, parts?: string[]): void; static getItem(type: T, name: string, parts?: string[]): InstanceType | undefined; static setPage(endpoint: string, page: number, options: PaginatedRequestParams, auth: AuthorizationOptions | undefined, parts: string[] | undefined, type: PaginatedType | undefined, value: PaginatedResponse, ttl: number): void; static getPages(endpoint: string, options: PaginatedRequestParams, auth?: AuthorizationOptions, parts?: string[], type?: PaginatedType): PaginatedResponse[] | undefined; private static findCachedItemWithParts; static checkTTLs(): void; static setTTLs(ttl: number): void; static _deleteItem(key: string, parts?: string): CacheItem; static _deleteResolution(type: ResolvableClass, input: string): CacheItem>; /** * @returns Pages left in the key */ static _deletePageByKey(parts: string, key: string, page: number): CacheItem>[]; /** * @returns Pages left in the key */ static _deletePage(endpoint: string, page: number, options: PaginatedRequestParams, auth?: AuthorizationOptions, parts?: string[], type?: PaginatedType): CacheItem>[]; }