/// import { Connection, PublicKey } from '@solana/web3.js'; import { ProgramAccountWithType } from '../core/accounts'; import { Schema } from 'borsh'; import { ProgramAccount } from '../tools/sdk/runtime'; import { WalletSigner } from '../tools/walletAdapter'; export declare class RpcContext { programId: PublicKey; programVersion: number; wallet: WalletSigner; connection: Connection; endpoint: string; constructor(programId: PublicKey, programVersion: number, wallet: WalletSigner, connection: Connection, endpoint: string); get walletPubkey(): PublicKey; get programIdBase58(): string; } export declare class MemcmpFilter { offset: number; bytes: Buffer; constructor(offset: number, bytes: Buffer); isMatch(buffer: Buffer): boolean; } export declare const pubkeyFilter: (offset: number, pubkey: PublicKey | undefined | null) => MemcmpFilter | undefined; export declare const booleanFilter: (offset: number, value: boolean) => MemcmpFilter; export declare function getBorshProgramAccounts(connection: Connection, programId: PublicKey, getSchema: (accountType: number) => Schema, accountFactory: new (args: any) => TAccount, filters?: MemcmpFilter[], accountType?: number): Promise[]>; //# sourceMappingURL=api.d.ts.map