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