type CachedItem = string | Promise<string>;
/**
 * Provides svg caching functionality to avoid redundant XHR requests.
 * When the retrieved item doesn't exist in cache yet, a request is sent
 * to its 'src' url. The request's promise is cached for that 'src' key
 * and can be used for the whole session without repeating requests.
 */
declare class Cache {
    cache: Map<string, CachedItem>;
    add: (src: string, svg: CachedItem) => void;
    get: (src: string) => CachedItem;
    reset: () => void;
}
declare const cache: Cache;
export default cache;
//# sourceMappingURL=cache.d.ts.map