UNPKG

earthmc

Version:

An unofficial EarthMC library providing handy methods and extensive info.

16 lines 625 B
import type { AnyMap } from '../types/index.js'; import TTLCache from '@isaacs/ttlcache'; declare class DataHandler { #private; get map(): AnyMap; constructor(mapName: AnyMap, cacheTTL: number); private createCache; readonly getFromCache: (key: string) => any; readonly putInCache: <T>(key: string, value: T) => TTLCache<string, any>; readonly setKeyTTL: (key: string, ttl: number) => void; readonly playerData: <T>() => Promise<T>; readonly configData: <T>() => Promise<T>; readonly mapData: <T>() => Promise<T>; } export default DataHandler; //# sourceMappingURL=DataHandler.d.ts.map