import type { CodecHash, Hash } from '../interfaces/runtime'; import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../types'; export declare class CodecMap extends Map implements Codec { #private; readonly registry: Registry; createdAtHash?: Hash; constructor(registry: Registry, keyType: Constructor | keyof InterfaceTypes, valType: Constructor | keyof InterfaceTypes, rawValue: Uint8Array | string | Map | undefined, type?: 'BTreeMap' | 'HashMap'); /** * @description The length of the value when encoded as a Uint8Array */ get encodedLength(): number; /** * @description Returns a hash of the value */ get hash(): CodecHash; /** * @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?: unknown): boolean; /** * @description Returns a hex string representation of the value. isLe returns a LE (number-only) representation */ toHex(): string; /** * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information */ toHuman(isExtended?: boolean): Record; /** * @description Converts the Object to JSON, typically used for RPC transfers */ toJSON(): Record; /** * @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; }