import { DataSource, TileDataSource, TileDataSourceOptions } from '.'; export interface TileDownloadListener { onDownloadCompleted(); onDownloadFailed(tile: { x: number; y: number; tileId: number }); onDownloadProgress(progress: number); onDownloadStarting(tileCount: number); } export interface PersistentCacheTileDataSourceOptions extends TileDataSourceOptions { dataSource: TileDataSource; databasePath?: string; capacity?: number; cacheOnlyMode?: boolean; } export class PersistentCacheTileDataSource extends DataSource { capacity: number; cacheOnlyMode: boolean; clear(); } export interface MemoryCacheTileDataSourceOptions extends TileDataSourceOptions { dataSource: TileDataSource; capacity?: number; } export class MemoryCacheTileDataSource extends DataSource {}