UNPKG

@abextm/cache2

Version:

Utilities for reading OSRS "caches"

22 lines 855 B
import { PerFileLoadable } from "../Loadable.js"; import { Reader } from "../Reader.js"; import { Typed } from "../reflect.js"; import { EnumID, ScriptVarChar } from "../types.js"; export declare class EnumValueMap<K extends number = number, V extends string | number = string | number> extends Map<K, V> { readonly parent: Enum<K, V>; constructor(parent: Enum<K, V>); } export declare class Enum<K extends number = number, V extends string | number = string | number> extends PerFileLoadable { id: EnumID; constructor(id: EnumID); [Typed.type]: Typed.Any; static readonly index = 2; static readonly archive = 8; keyTypeChar: ScriptVarChar; valueTypeChar: ScriptVarChar; defaultValue: V; map: Map<K, V>; get(k: K): V; static decode(reader: Reader, id: EnumID): Enum; } //# sourceMappingURL=Enum.d.ts.map