/** * 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit'; import { VoucherSeeds } from '../pdas'; import { type LeafSchema, type LeafSchemaArgs } from '../types'; export declare const VOUCHER_DISCRIMINATOR: Uint8Array; export declare function getVoucherDiscriminatorBytes(): ReadonlyUint8Array; export type Voucher = { discriminator: ReadonlyUint8Array; leafSchema: LeafSchema; index: number; merkleTree: Address; }; export type VoucherArgs = { leafSchema: LeafSchemaArgs; index: number; merkleTree: Address; }; export declare function getVoucherEncoder(): Encoder; export declare function getVoucherDecoder(): Decoder; export declare function getVoucherCodec(): Codec; export declare function decodeVoucher(encodedAccount: EncodedAccount): Account; export declare function decodeVoucher(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchVoucher(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeVoucher(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllVoucher(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeVoucher(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchVoucherFromSeeds(rpc: Parameters[0], seeds: VoucherSeeds, config?: FetchAccountConfig & { programAddress?: Address; }): Promise>; export declare function fetchMaybeVoucherFromSeeds(rpc: Parameters[0], seeds: VoucherSeeds, config?: FetchAccountConfig & { programAddress?: Address; }): Promise>; //# sourceMappingURL=voucher.d.ts.map