import { DataResource, Insight, InsightView } from '@csnext/cs-data'; import { MapDatasource } from './map-datasource'; import { GeojsonPlusLayer } from '../layers/geojson-plus-layer'; export declare class StatsDatasource extends MapDatasource { static TIME_TOPIC: string; static FOCUS_TIME_CHANGED: string; id: string; activeInsight?: Insight; activeInsightView?: InsightView; mainLayer?: GeojsonPlusLayer; activateInsight(insight: string | Insight, view?: number): Promise; disableInsight(): void; downloadCsv(layer: GeojsonPlusLayer): Promise; downloadFile(layer: GeojsonPlusLayer): void; /** Go to previous date available */ previousDate(): void; /** Go to next date available */ nextDate(): void; /** Set focus time to a specific date, calculate properties and refresh layer */ setFocusDate(date: number): void; /** update all feature properties for a specific date (if available) */ updateDateProperties(date: number): void; openSourceDetails(source: DataResource | string): any; downloadSource(source: DataResource): void; storeState(): void; restoreState(): Promise; activateInsightView(view: InsightView, insight: Insight): Promise; activateResources(resources: string[]): Promise; activateLayerResource(resourceName: string): Promise; private forceFileDownload; }