import type { Rpc, RpcSubscriptions, SolanaRpcApi, SolanaRpcSubscriptionsApi } from '@solana/kit'; import type { EventEmitter } from './events.js'; export interface SlotTrackerOptions { rpc: Rpc; rpcSubscriptions: RpcSubscriptions; emit: EventEmitter; signal: AbortSignal; } export interface SlotTracker { /** Resolves once estimator has MIN_SAMPLES samples OR a polling fallback populated a slot. */ readonly ready: Promise; /** Returns current best-estimate slot. Throws if never populated. */ estimate(): bigint; /** Was the last slot event within STALL_MS? */ isFresh(): boolean; } export declare function createSlotTracker(opts: SlotTrackerOptions): Promise; //# sourceMappingURL=slot-tracker.d.ts.map