/** * 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_ACCOUNT2_DISCRIMINATOR = 16; export declare function getInitializeAccount2DiscriminatorBytes(): ReadonlyUint8Array; export type InitializeAccount2Instruction = string, TAccountMint extends string | AccountMeta = string, TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount : TAccountAccount, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export type InitializeAccount2InstructionData = { discriminator: number; /** The new account's owner/multisignature. */ owner: Address; }; export type InitializeAccount2InstructionDataArgs = { /** The new account's owner/multisignature. */ owner: Address; }; export declare function getInitializeAccount2InstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializeAccount2InstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializeAccount2InstructionDataCodec(): FixedSizeCodec; export type InitializeAccount2Input = { /** The account to initialize. */ account: Address; /** The mint this account will be associated with. */ mint: Address; /** Rent sysvar. */ rent?: Address; owner: InitializeAccount2InstructionDataArgs['owner']; }; export declare function getInitializeAccount2Instruction(input: InitializeAccount2Input, config?: { programAddress?: TProgramAddress; }): InitializeAccount2Instruction; export type ParsedInitializeAccount2Instruction = { programAddress: Address; accounts: { /** The account to initialize. */ account: TAccountMetas[0]; /** The mint this account will be associated with. */ mint: TAccountMetas[1]; /** Rent sysvar. */ rent: TAccountMetas[2]; }; data: InitializeAccount2InstructionData; }; export declare function parseInitializeAccount2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeAccount2Instruction; //# sourceMappingURL=initializeAccount2.d.ts.map