/** * 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 Schema = { discriminator: number; credential: Address; name: ReadonlyUint8Array; description: ReadonlyUint8Array; layout: ReadonlyUint8Array; fieldNames: ReadonlyUint8Array; isPaused: boolean; version: number; }; export type SchemaArgs = Schema; /** Gets the encoder for {@link SchemaArgs} account data. */ export declare function getSchemaEncoder(): Encoder; /** Gets the decoder for {@link Schema} account data. */ export declare function getSchemaDecoder(): Decoder; /** Gets the codec for {@link Schema} account data. */ export declare function getSchemaCodec(): Codec; export declare function decodeSchema(encodedAccount: EncodedAccount): Account; export declare function decodeSchema(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchSchema(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeSchema(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllSchema(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeSchema(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>;