/** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; export type User = Account; export type UserAccountData = { discriminator: Uint8Array; campaign: PublicKey; itemsPurchasedPerStage: Array; itemsPurchased: bigint; bump: number; }; export type UserAccountDataArgs = { campaign: PublicKey; itemsPurchasedPerStage: Array; itemsPurchased: number | bigint; bump: number; }; export declare function getUserAccountDataSerializer(): Serializer; export declare function deserializeUser(rawAccount: RpcAccount): User; export declare function fetchUser(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchUser(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllUser(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllUser(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getUserGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; itemsPurchased: number | bigint; bump: number; }>; //# sourceMappingURL=user.d.ts.map