import { TileMatrixSet } from '@basemaps/geo';
import { TileSet } from './tile.set.js';
export declare class TileSetCache {
    /** Duration to cache tile sets for */
    CacheTime: number;
    /** Cache the fetch requests */
    cache: Map<string, {
        time: number;
        value: Promise<TileSet | null>;
    }>;
    /** Cache initialized tile sets */
    tileSets: Map<string, TileSet>;
    id(tileSet: TileSet): string;
    id(name: string, tileMatrix: TileMatrixSet): string;
    add(tileSet: TileSet, expiresAt?: number): void;
    get(name: string, tileMatrix: TileMatrixSet): Promise<TileSet | null>;
    loadTileSet(name: string, tileMatrix: TileMatrixSet): Promise<TileSet | null>;
    getAll(name: string, tileMatrix?: TileMatrixSet | null): Promise<TileSet[]>;
}
export declare const TileSets: TileSetCache;
//# sourceMappingURL=tile.set.cache.d.ts.map