import { DecodedTile } from "@here/harp-datasource-protocol" ; /**
 * The state the  ITileLoader .
  export enum TileLoaderState { Initialized , Loading , Loaded , Decoding , Ready , Canceled , Failed } /**
 * The interface for managing tile loading.
 */ export interface ITileLoader { /**
     * Current state of `TileLoader`.
     */ state : TileLoaderState ; /**
     * The result of decoding the `payload`: The [[DecodedTile]].
     */ decodedTile ? : DecodedTile ; /**
     * `true` if [[Tile]] is still loading, `false` otherwise.
     */ readonly isFinished : boolean ; /**
     * Priority given to the tile loading task. The greater the number, the higher the priority.
     */ priority : number ; param client returns loadAndDecode ( client ? ) : Promise < TileLoaderState > ; returns waitSettled ( ) : Promise < TileLoaderState > ; param client - Optional client requesting the cancelation. It's expected to match one of
     * the clients that previously called  ITileLoader . loadAndDecode .
      cancel ( client ? ) : void ; }