/** * Node delegate queries for IoTeX SDK */ import { GrpcClient } from '../client/grpc-client'; import { Delegate, EpochMeta, Candidate } from '../types'; export declare class NodeDelegate { private client; constructor(client: GrpcClient); /** * Get delegates for specific epoch */ getDelegates(options?: { epochNumber?: number; all?: boolean; }): Promise; /** * Get current epoch metadata */ getCurrentEpoch(): Promise; /** * Get probation list for epoch */ getProbationList(epochNumber: number, height?: string): Promise>; /** * Get active block producers for epoch */ getActiveBlockProducers(epochNumber: number, height: string): Promise>; /** * Get block producers for epoch */ getBlockProducers(epochNumber: number): Promise>; /** * Get candidate name map from staking data */ private getCandidateNameMap; /** * Encode ReadStakingDataMethod protobuf message */ private encodeReadStakingDataMethod; /** * Encode ReadStakingDataRequest protobuf message for Candidates */ private encodeReadStakingDataRequest; /** * Append a varint to a byte array */ private appendVarint; /** * Parse CandidateListV2 protobuf response */ private parseCandidateListV2; /** * Parse a single CandidateV2 message */ private parseCandidateV2; /** * Get all staking candidates (paginated) */ private getAllStakingCandidates; /** * Read a varint (uint64) from a buffer */ private readVarint; /** * Read a length-delimited string from a buffer */ private readLengthDelimitedString; /** * Skip a protobuf field */ private skipField; /** * Get all staking candidates (paginated) */ getAllCandidates(offset?: number, limit?: number): Promise; /** * Get candidate by name */ getCandidateByName(name: string): Promise; } //# sourceMappingURL=delegate.d.ts.map