import { FetchableTile } from './FetchableTile.js'; import { CacheableTile } from './CacheableTile.js'; import { FetchFn } from '@allmaps/types'; import { GetImageData } from '../shared/types.js'; /** * Class for tiles that can be cached, and whose data can be processed to an IntArray. */ export declare class CacheableIntArrayTile extends CacheableTile { getImageData: GetImageData; constructor(fetchableTile: FetchableTile, getImageData: GetImageData, fetchFn?: FetchFn); /** * Fetch the tile and create its IntArray data using the supplied getImageData function. * * @returns */ fetch(): Promise; applySprites(): Promise; spritesDataToCachedTiles(): never[]; static createFactory(getImageData: GetImageData): (fetchableTile: FetchableTile, fetchFn?: FetchFn) => CacheableIntArrayTile; } /** * Class for tiles that is cached, and whose data has been processed to an IntArray. */ export declare class CachedIntArrayTile extends CacheableIntArrayTile { data: D; }