/** * 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'; import { LeafSchema, LeafSchemaArgs } from '../types'; export declare type Voucher = Account; export declare type VoucherAccountData = { discriminator: Array; leafSchema: LeafSchema; index: number; merkleTree: PublicKey; }; export declare type VoucherAccountDataArgs = { leafSchema: LeafSchemaArgs; index: number; merkleTree: PublicKey; }; export declare function getVoucherAccountDataSerializer(): Serializer; export declare function deserializeVoucher(rawAccount: RpcAccount): Voucher; export declare function fetchVoucher(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchVoucher(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllVoucher(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllVoucher(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getVoucherGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; leafSchema: LeafSchemaArgs; index: number; merkleTree: PublicKey; }>; export declare function findVoucherPda(context: Pick, seeds: { merkleTree: PublicKey; nonce: number | bigint; }): Pda; export declare function fetchVoucherFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchVoucherFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;