/** * 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 EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from '@solana/kit'; import { type Status, type StatusArgs } from '../types'; export type Payment = { discriminator: number; orderId: number; amount: bigint; createdAt: bigint; status: Status; bump: number; }; export type PaymentArgs = { discriminator: number; orderId: number; amount: number | bigint; createdAt: number | bigint; status: StatusArgs; bump: number; }; export declare function getPaymentEncoder(): FixedSizeEncoder; export declare function getPaymentDecoder(): FixedSizeDecoder; export declare function getPaymentCodec(): FixedSizeCodec; export declare function decodePayment(encodedAccount: EncodedAccount): Account; export declare function decodePayment(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchPayment(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybePayment(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllPayment(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybePayment(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getPaymentSize(): number; //# sourceMappingURL=payment.d.ts.map