/** * This code was AUTOGENERATED using the codama library. * And vendored in from various codama generated client to help * minimize redundancy and bundle sizes * * @see https://github.com/codama-idl/codama */ import { type Address, type ProgramDerivedAddress } from "@solana/kit"; import { type AccountMeta } from "@solana/kit"; import { type AccountSignerMeta, 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 IInstructionWithByteDelta = { 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