import type { CacheStore } from "./store"; import TaggedCache from "./taggedCache"; declare class CacheRepository { private readonly store; constructor(store: CacheStore); get(key: string): Promise; remember(key: string, callback: () => Promise, ttlMs?: number): Promise; forget(key: string): Promise; flush(): Promise; tags(...names: string[]): TaggedCache; getOrSet(key: string, loader: () => Promise, ttlMs?: number): Promise; invalidate(key: string): Promise; invalidateByPrefix(prefix: string): Promise; clear(): Promise; size(): Promise; } export { CacheRepository }; export default CacheRepository;