import { Commitment, Connection } from '@solana/web3.js'; import { DriftClient } from '../driftClient'; export type UserAccountFilterCriteria = { hasOpenOrders: boolean; }; export type UserMapConfig = { driftClient: DriftClient; connection?: Connection; subscriptionConfig: { type: 'polling'; frequency: number; commitment?: Commitment; } | { type: 'websocket'; resubTimeoutMs?: number; commitment?: Commitment; }; skipInitialLoad?: boolean; includeIdle?: boolean; fastDecode?: boolean; disableSyncOnTotalAccountsChange?: boolean; };