import { OptionType } from '../types/optionType';
type CacheEntry = {
    created: Date;
    items: OptionType[];
};
export interface Cache {
    itemCache: Map<string, CacheEntry>;
    getCachedItems: (text: string) => OptionType[] | undefined;
    cacheItems: (text: string, items: OptionType[]) => void;
    dispose: () => void;
}
export declare const createCache: (id: string, timeToLive?: number, delay?: number) => Cache;
export {};
