import type { HexString } from '@polkadot/util/types'; import type { Codec, CodecClass, DefinitionSetter, Registry } from '../types/index.js'; import { AbstractArray } from '../abstract/Array.js'; export declare function decodeVec(registry: Registry, result: T[], value: Uint8Array | HexString | unknown[] | null, startAt: number, Type: CodecClass): [number, number]; /** * @name Vec * @description * This manages codec arrays. Internally it keeps track of the length (as decoded) and allows * construction with the passed `Type` in the constructor. It is an extension to Array, providing * specific encoding/decoding on top of the base type. */ export declare class Vec extends AbstractArray { #private; constructor(registry: Registry, Type: CodecClass | string, value?: Uint8Array | HexString | unknown[], { definition, setDefinition }?: DefinitionSetter>); static with(Type: CodecClass | string): CodecClass>; /** * @description The type for the items */ get Type(): string; /** * @description Finds the index of the value in the array */ indexOf(other?: unknown): number; /** * @description Returns the base runtime type name for this instance */ toRawType(): string; }