import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-Cet1W6Kq.cjs"; //#region ../../node_modules/.pnpm/@injectivelabs+tc-abacus-proto-ts-v2@1.18.9/node_modules/@injectivelabs/tc-abacus-proto-ts-v2/generated/injective_tc_abacus_rpc_pb.d.ts /** * @generated from protobuf message injective_tc_abacus_rpc.CreateReferrerCodeResponse */ interface CreateReferrerCodeResponse {} /** * @generated from protobuf message injective_tc_abacus_rpc.SetReferrerCategoryResponse */ interface SetReferrerCategoryResponse {} /** * @generated MessageType for protobuf message injective_tc_abacus_rpc.CreateReferrerCodeResponse */ declare const CreateReferrerCodeResponse = new CreateReferrerCodeResponse$Type(); /** * @generated MessageType for protobuf message injective_tc_abacus_rpc.SetReferrerCategoryResponse */ declare const SetReferrerCategoryResponse = new SetReferrerCategoryResponse$Type(); //#endregion //#region src/client/tcAbacus/types/tcAbacus.d.ts type ReferrerCategory = 'default' | 'kol1' | 'kol2'; type ReferrerCategoryResponse = ReferrerCategory | (string & {}); interface CurrentEpochResponse { epochEnd: string; epochPoints: string; epochPointsDistributedAt: string; } interface HealthCheckResponse { uptime: string; uptimeSeconds: number; } interface SnapshotPoints { rank: string; points: string; endTime: string; startTime: string; snapshotId: string; } interface AccountPointsResponse { rank: string; address: string; updatedAt: string; totalPoints: string; nextCursor?: string; totalReferralPoints: string; snapshots: SnapshotPoints[]; } interface AccountStatsResponse { cap: number; code: string; address: string; isKol: boolean; category?: ReferrerCategoryResponse; last7DVolume: string; inviteeCount: number; allTimeVolume: string; creatorAddress: string; activeInviteeCount: number; } interface Referrer { cap: number; code: string; height: string; address: string; createdAt: string; isKol: boolean; status: string; category?: ReferrerCategoryResponse; inviteeCount: number; creatorAddress: string; } interface ListReferrersResponse { nextCursor?: string; referrers: Referrer[]; } interface ReferrerInvitee { height: string; address: string; earnings?: string; createdAt: string; allTimeVolume: string; referralPoints: string; } interface AccountInviteesResponse { address: string; nextCursor?: string; invitees: ReferrerInvitee[]; } interface ReferrerMonthlyEarnings { month: string; volume: string; earnings: string; cumulativeEarnings: string; } interface AccountEarningsResponse { address: string; totalEarnings: string; months: ReferrerMonthlyEarnings[]; } interface ReferrerEligibilityResponse { volume: string; isEligible: boolean; volumeThreshold: string; } interface ReferrerCode { code: string; cap?: number; createdAt: string; invitees: string[]; } interface ListReferrerCodesResponse { nextCursor?: string; codes: ReferrerCode[]; } interface InviteeReferrer { code: string; height: string; address: string; createdAt: string; referrerAddress: string; } //#endregion //#region src/client/tcAbacus/grpc/TcAbacusGrpcApi.d.ts declare class TcAbacusGrpcApi extends BaseGrpcConsumer { protected module: string; private get client(); fetchCurrentEpoch(): Promise; fetchHealthCheck(): Promise; fetchAccountPoints(address: string, cursor?: string, limit?: number): Promise; fetchAccountStats(address: string): Promise; fetchReferrers(params?: { cursor?: string; limit?: number; address?: string; code?: string; status?: string; }): Promise; fetchAccountInvitees(address: string, cursor?: string, limit?: number): Promise; fetchAccountEarnings(address: string): Promise; fetchReferrerEligibility(address: string): Promise; createReferrerCode(address: string, code: string, params?: { signature?: string; expiresAt?: number; evmChainId?: number; }): Promise; setReferrerCategory(address: string, category: ReferrerCategory): Promise; fetchReferrerCodes(address: string, cursor?: string, limit?: number): Promise; fetchInviteeReferrer(address: string): Promise; } //#endregion export { ReferrerMonthlyEarnings as _, AccountStatsResponse as a, InviteeReferrer as c, Referrer as d, ReferrerCategory as f, ReferrerInvitee as g, ReferrerEligibilityResponse as h, AccountPointsResponse as i, ListReferrerCodesResponse as l, ReferrerCode as m, AccountEarningsResponse as n, CurrentEpochResponse as o, ReferrerCategoryResponse as p, AccountInviteesResponse as r, HealthCheckResponse as s, TcAbacusGrpcApi as t, ListReferrersResponse as u, SnapshotPoints as v };