import { Codec, Constructor, InterfaceTypes } from '../types'; import AbstractArray from './AbstractArray'; declare type TupleTypes = (Constructor | InterfaceTypes)[] | { [index: string]: Constructor | InterfaceTypes; }; /** * @name Tuple * @description * A Tuple defines an anonymous fixed-length array, where each element has its * own type. It extends the base JS `Array` object. */ export default class Tuple extends AbstractArray { private _Types; constructor(Types: TupleTypes, value?: any); private static decodeTuple; static with(Types: TupleTypes): Constructor; /** * @description The length of the value when encoded as a Uint8Array */ readonly encodedLength: number; /** * @description The types definition of the tuple */ readonly Types: string[]; /** * @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 {};