import type { CachedData } from "./types.js"; export interface MemoryCacheOptions { max: number; ttl: number; } export interface MemoryCache { get(key: string): CachedData | undefined; set(key: string, value: CachedData): void; clear(): void; readonly size: number; readonly max: number; } export declare function createMemoryCache(options: MemoryCacheOptions): MemoryCache;