import { AnyJsonArray, Constructor, Codec, IHash, InterfaceTypes, Registry } from '../types'; export default class BTreeSet extends Set implements Codec { readonly registry: Registry; protected _ValClass: Constructor; constructor(registry: Registry, valType: Constructor | InterfaceTypes, rawValue: any); /** * Decode input to pass into constructor. * * @param ValClass - Type of the map value * @param value - Value to decode, one of: * - null * - undefined * - hex * - Uint8Array * - Set, where both key and value types are either * constructors or decodeable values for their types. * @param jsonSet * @internal */ private static decodeBTreeSet; /** @internal */ private static decodeBTreeSetFromU8a; /** @internal */ private static decodeBTreeSetFromSet; static with(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(): AnyJsonArray; /** * @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; }