import { Connection } from '@solana/web3.js'; import type { Provider } from './provider'; import type { AccountInfo, GetProgramAccountsFilter, ParsedAccountData, PublicKey } from '@solana/web3.js'; export type ProgramAccount = { publicKey: PublicKey; account: T; }; export type ProgramAccountInfo = ProgramAccount>; export type ProgramAccountInfoNullable = ProgramAccount | null>; export type ProgramAccountInfoNoData = ProgramAccount>; export type ProgramAccountWithInfoNullable = { publicKey: PublicKey; account: T | null; accountInfo: AccountInfo | null; }; export type HasProvider = { provider: Provider; }; export declare function isWithPublicKey(account: any): account is { publicKey: PublicKey; }; export declare function getConnection(providerOrConnection: Provider | Connection | HasProvider): Connection; export declare function programAccountInfo(publicKey: PublicKey, account: AccountInfo, data: T): ProgramAccountInfo; export declare function getMultipleAccounts({ connection, addresses, }: { connection: HasProvider | Connection | Provider; addresses: PublicKey[] | undefined; }): Promise[]>; export declare function getAccountInfoNoData({ connection, programId, filters, }: { connection: HasProvider | Connection | Provider; programId: PublicKey; filters?: GetProgramAccountsFilter[] | undefined; }): Promise; export declare function getAccountInfoAddresses({ connection, programId, filters, }: { connection: HasProvider | Connection | Provider; programId: PublicKey; filters?: GetProgramAccountsFilter[] | undefined; }): Promise; //# sourceMappingURL=account.d.ts.map