/** * 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, type ReadonlyUint8Array } from '@solana/kit'; import { TreeConfigSeeds } from '../pdas'; import { type DecompressibleState, type DecompressibleStateArgs, type Version, type VersionArgs } from '../types'; export declare const TREE_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getTreeConfigDiscriminatorBytes(): ReadonlyUint8Array; export type TreeConfig = { discriminator: ReadonlyUint8Array; treeCreator: Address; treeDelegate: Address; totalMintCapacity: bigint; numMinted: bigint; isPublic: boolean; isDecompressible: DecompressibleState; version: Version; }; export type TreeConfigArgs = { treeCreator: Address; treeDelegate: Address; totalMintCapacity: number | bigint; numMinted: number | bigint; isPublic: boolean; isDecompressible: DecompressibleStateArgs; version: VersionArgs; }; export declare function getTreeConfigEncoder(): FixedSizeEncoder; export declare function getTreeConfigDecoder(): FixedSizeDecoder; export declare function getTreeConfigCodec(): FixedSizeCodec; export declare function decodeTreeConfig(encodedAccount: EncodedAccount): Account; export declare function decodeTreeConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchTreeConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeTreeConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllTreeConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeTreeConfig(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getTreeConfigSize(): number; export declare function fetchTreeConfigFromSeeds(rpc: Parameters[0], seeds: TreeConfigSeeds, config?: FetchAccountConfig & { programAddress?: Address; }): Promise>; export declare function fetchMaybeTreeConfigFromSeeds(rpc: Parameters[0], seeds: TreeConfigSeeds, config?: FetchAccountConfig & { programAddress?: Address; }): Promise>; //# sourceMappingURL=treeConfig.d.ts.map