/** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/metaplex-foundation/kinobi */ import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; export type FanoutMembershipVoucher = Account; export type FanoutMembershipVoucherAccountData = { discriminator: Array; fanout: PublicKey; totalInflow: bigint; lastInflow: bigint; bumpSeed: number; membershipKey: PublicKey; shares: bigint; }; export type FanoutMembershipVoucherAccountDataArgs = { fanout: PublicKey; totalInflow: number | bigint; lastInflow: number | bigint; bumpSeed: number; membershipKey: PublicKey; shares: number | bigint; }; /** @deprecated Use `getFanoutMembershipVoucherAccountDataSerializer()` without any argument instead. */ export declare function getFanoutMembershipVoucherAccountDataSerializer(_context: object): Serializer; export declare function getFanoutMembershipVoucherAccountDataSerializer(): Serializer; /** @deprecated Use `deserializeFanoutMembershipVoucher(rawAccount)` without any context instead. */ export declare function deserializeFanoutMembershipVoucher(context: object, rawAccount: RpcAccount): FanoutMembershipVoucher; export declare function deserializeFanoutMembershipVoucher(rawAccount: RpcAccount): FanoutMembershipVoucher; export declare function fetchFanoutMembershipVoucher(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanoutMembershipVoucher(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllFanoutMembershipVoucher(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllFanoutMembershipVoucher(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getFanoutMembershipVoucherGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; fanout: PublicKey; totalInflow: number | bigint; lastInflow: number | bigint; bumpSeed: number; membershipKey: PublicKey; shares: number | bigint; }>; export declare function getFanoutMembershipVoucherSize(): number; export declare function findFanoutMembershipVoucherPda(context: Pick, seeds: { /** The address of the fanout account */ fanout: PublicKey; /** The member's public key */ member: PublicKey; }): Pda; export declare function fetchFanoutMembershipVoucherFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanoutMembershipVoucherFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;