/** * 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'; export type Attestation = { discriminator: number; nonce: Address; credential: Address; schema: Address; data: ReadonlyUint8Array; signer: Address; expiry: bigint; tokenAccount: Address; }; export type AttestationArgs = { discriminator: number; nonce: Address; credential: Address; schema: Address; data: ReadonlyUint8Array; signer: Address; expiry: number | bigint; tokenAccount: Address; }; /** Gets the encoder for {@link AttestationArgs} account data. */ export declare function getAttestationEncoder(): Encoder; /** Gets the decoder for {@link Attestation} account data. */ export declare function getAttestationDecoder(): Decoder; /** Gets the codec for {@link Attestation} account data. */ export declare function getAttestationCodec(): Codec; export declare function decodeAttestation(encodedAccount: EncodedAccount): Account; export declare function decodeAttestation(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchAttestation(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeAttestation(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllAttestation(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeAttestation(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>;