export interface CacheHelper<V> {
    create(key: string): V;
    dispose(value: V, key: string): void;
}
export declare class Cache<V> {
    private helper;
    private map;
    constructor(helper: CacheHelper<V>);
    value(key: string): V;
    clear(): void;
    remove(key: string): void;
    removeAll(keys: string[]): void;
    retain(key: string): void;
    retainAll(keys: string[]): void;
    resetTouches(): void;
    retainTouched(): void;
}
