import { TileKey } from "@here/harp-geoutils" ; import { GeoJson } from "../lib/GeoJsonDataType" ; /**
 * General type tiler which can be used to provide tile untiled payloads.
 */ export interface ITiler { /**
     * Connect to tiler.
     *
     * Should be implemented by implementations that use special resources that decode jobs like
     * WebWorkers.
     */ connect ( ) : Promise < void > ; param indexId param indexUrl registerIndex ( indexId , indexUrl ) : Promise < void > ; param indexId param indexUrl updateIndex ( indexId , indexUrl ) : Promise < void > ; param indexId param tileKey getTile ( indexId , tileKey ) : Promise < { } > ; /**
     * Free all resources associated with this tiler.
     *
     * Called by users when decoder is no longer used and all resources must be freed.
     */ dispose ( ) : void ; }