/** * 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 { type AccountMeta, type AccountSignerMeta, type Address, type ProgramDerivedAddress, type TransactionSigner } from '@solana/kit'; /** * Asserts that the given value is not null or undefined. * @internal */ export declare function expectSome(value: T | null | undefined): T; /** * Asserts that the given value is a PublicKey. * @internal */ export declare function expectAddress(value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined): Address; /** * Asserts that the given value is a PDA. * @internal */ export declare function expectProgramDerivedAddress(value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined): ProgramDerivedAddress; /** * Asserts that the given value is a TransactionSigner. * @internal */ export declare function expectTransactionSigner(value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined): TransactionSigner; /** * Defines an instruction account to resolve. * @internal */ export type ResolvedAccount | ProgramDerivedAddress | TransactionSigner | null = Address | ProgramDerivedAddress | TransactionSigner | null> = { isWritable: boolean; value: U; }; /** * Defines an instruction that stores additional bytes on-chain. * @internal */ export type InstructionWithByteDelta = { byteDelta: number; }; /** * Get account metas and signers from resolved accounts. * @internal */ export declare function getAccountMetaFactory(programAddress: Address, optionalAccountStrategy: 'omitted' | 'programId'): (account: ResolvedAccount) => AccountMeta | AccountSignerMeta | undefined; export declare function isTransactionSigner(value: Address | ProgramDerivedAddress | TransactionSigner): value is TransactionSigner; //# sourceMappingURL=index.d.ts.map