import { Codec, Constructor, IHash } from '../types'; declare type SetValues = Record; /** * @name Set * @description * An Set is an array of string values, represented an an encoded type by * a bitwise representation of the values. */ export default class CodecSet extends Set implements Codec { private _setValues; constructor(setValues: SetValues, value?: string[] | Set | Uint8Array | number); static decodeSet(setValues: SetValues, value?: string[] | Set | Uint8Array | number): string[]; private static decodeSetArray; private static decodeSetNumber; static encodeSet(setValues: SetValues, value: string[]): number; static with(values: SetValues): Constructor; /** * @description The length of the value when encoded as a Uint8Array */ readonly encodedLength: number; /** * @description returns a hash of the contents */ readonly hash: IHash; /** * @description true is the Set contains no values */ readonly isEmpty: boolean; /** * @description The actual set values as a string[] */ readonly strings: string[]; /** * @description The encoded value for the set members */ readonly valueEncoded: number; /** * @description adds a value to the Set (extended to allow for validity checking) */ add(key: string): this; /** * @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 */ toHex(): string; /** * @description Converts the Object to JSON, typically used for RPC transfers */ toJSON(): string[]; /** * @description The encoded value for the set members */ toNumber(): number; /** * @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; } export {};