/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.IKey} HashgraphProto.proto.IKey * @typedef {import("@hashgraph/proto").proto.IKeyList} HashgraphProto.proto.IKeyList * @typedef {import("@hashgraph/proto").proto.IThresholdKey} HashgraphProto.proto.IThresholdKey */ /** * A list of Keys (`Key`) with an optional threshold. */ export default class KeyList extends Key { /** * @param {Key[]} keys * @returns {KeyList} */ static of(...keys: Key[]): KeyList; /** * @template T * @param {ArrayLike} arrayLike * @param {((key: Key) => Key)} [mapFn] * @param {T} [thisArg] * @returns {KeyList} */ static from(arrayLike: ArrayLike, mapFn?: ((key: Key) => Key) | undefined, thisArg?: T | undefined): KeyList; /** * @param {HashgraphProto.proto.IKeyList} key * @returns {KeyList} */ static __fromProtobufKeyList(key: HashgraphProto.proto.IKeyList): KeyList; /** * @param {HashgraphProto.proto.IThresholdKey} key * @returns {KeyList} */ static __fromProtobufThresoldKey(key: HashgraphProto.proto.IThresholdKey): KeyList; /** * @param {?Key[]} [keys] * @param {?number} [threshold] */ constructor(keys?: Key[] | null | undefined, threshold?: number | null | undefined); /** * @private * @type {Key[]} */ private _keys; /** * @type {?number} */ _threshold: number | null; /** * @returns {?number} */ get threshold(): number | null; /** * @param {number} threshold * @returns {this} */ setThreshold(threshold: number): this; /** * @param {Key[]} keys * @returns {number} */ push(...keys: Key[]): number; /** * @param {number} start * @param {number} deleteCount * @param {Key[]} items * @returns {KeyList} */ splice(start: number, deleteCount: number, ...items: Key[]): KeyList; /** * @param {number=} start * @param {number=} end * @returns {KeyList} */ slice(start?: number | undefined, end?: number | undefined): KeyList; /** * @returns {Key[]} */ toArray(): Key[]; /** * @returns {Iterator} */ [Symbol.iterator](): Iterator; } export namespace HashgraphProto { namespace proto { type IKey = import("@hashgraph/proto").proto.IKey; type IKeyList = import("@hashgraph/proto").proto.IKeyList; type IThresholdKey = import("@hashgraph/proto").proto.IThresholdKey; } } import Key from "./Key.js";