import { DriftClient } from './driftClient'; import { PublicKey } from '@solana/web3.js'; import { DataAndSlot, UserStatsAccountSubscriber } from './accounts/types'; import { UserStatsConfig } from './userStatsConfig'; import { ReferrerInfo, UserStatsAccount } from './types'; export declare class UserStats { driftClient: DriftClient; userStatsAccountPublicKey: PublicKey; accountSubscriber: UserStatsAccountSubscriber; isSubscribed: boolean; constructor(config: UserStatsConfig); subscribe(userStatsAccount?: UserStatsAccount): Promise; fetchAccounts(): Promise; unsubscribe(): Promise; getAccountAndSlot(): DataAndSlot; getAccount(): UserStatsAccount; getReferrerInfo(): ReferrerInfo | undefined; static getOldestActionTs(account: UserStatsAccount): number; }