import { AnyJson, Constructor, Codec, IHash, InterfaceTypes, Registry } from '../types'; export default class BTreeMap extends Map implements Codec { readonly registry: Registry; protected _KeyClass: Constructor; protected _ValClass: Constructor; constructor(registry: Registry, keyType: Constructor | InterfaceTypes, valType: Constructor | InterfaceTypes, rawValue: any); /** * Decode input to pass into constructor. * * @param KeyClass - Type of the map key * @param ValClass - Type of the map value * @param value - Value to decode, one of: * - null * - undefined * - hex * - Uint8Array * - Map, where both key and value types are either * constructors or decodeable values for their types. * @param jsonMap * @internal */ private static decodeBTreeMap; /** @internal */ private static decodeBTreeMapFromU8a; /** @internal */ private static decodeBTreeMapFromMap; static with(keyType: Constructor | InterfaceTypes, valType: Constructor | InterfaceTypes): Constructor>; /** * @description The length of the value when encoded as a Uint8Array */ get encodedLength(): number; /** * @description Returns a hash of the value */ get hash(): IHash; /** * @description Checks if the value is an empty value */ get isEmpty(): boolean; /** * @description Compares the value of the input to see if there is a match */ eq(other?: any): boolean; /** * @description Returns a hex string representation of the value. isLe returns a LE (number-only) representation */ toHex(): string; /** * @description Converts the Object to JSON, typically used for RPC transfers */ toJSON(): AnyJson; /** * @description Returns the base runtime type name for this instance */ toRawType(): string; /** * @description Returns the string representation of the value */ toString(): string; /** * @description Encodes the value as a Uint8Array as per the SCALE specifications * @param isBare true when the value has none of the type-specific prefixes (internal) */ toU8a(isBare?: boolean): Uint8Array; }