///
import { AccountInfo, Connection, KeyedAccountInfo, ParsedAccountData, PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js';
import BN from 'bn.js';
export type SolanaConnection = Connection;
export type GenericKeyAccount = KeyedAccountInfo;
export type TransactionLike = Transaction | Buffer | string | VersionedTransaction;
export type CompatibleTransaction = Transaction | VersionedTransaction;
export type BufferOrParsedAccount = Buffer | ParsedAccountData;
export type ParsedAccountPair = {
pubkey: PublicKey;
account: AccountInfo;
};
export interface IMap {
[key: string]: T;
}
export interface IMapNumber {
[key: number]: T;
}
export type SortableTypes = string | number | Date | bigint | BN;
export type PickByTypeShort = {
[P in keyof T as T[P] extends TVal ? P : never]: T[P];
};
export type KeysOfType = {
[P in keyof T]: B extends true ? (T[P] extends U ? (U extends T[P] ? P : never) : never) : T[P] extends U ? P : never;
}[keyof T];
export type PickByType = Pick>;
//# sourceMappingURL=helper-types.d.ts.map