/** * 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_ACCOUNT_DISCRIMINATOR = 1; export declare function getInitializeAccountDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeAccountInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountOwner 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, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export type InitializeAccountInstructionData = { discriminator: number; }; export type InitializeAccountInstructionDataArgs = {}; export declare function getInitializeAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializeAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializeAccountInstructionDataCodec(): FixedSizeCodec; export type InitializeAccountInput = { /** The account to initialize. */ account: Address; /** The mint this account will be associated with. */ mint: Address; /** The new account's owner/multisignature. */ owner: Address; /** Rent sysvar. */ rent?: Address; }; export declare function getInitializeAccountInstruction(input: InitializeAccountInput, config?: { programAddress?: TProgramAddress; }): InitializeAccountInstruction; export type ParsedInitializeAccountInstruction = { programAddress: Address; accounts: { /** The account to initialize. */ account: TAccountMetas[0]; /** The mint this account will be associated with. */ mint: TAccountMetas[1]; /** The new account's owner/multisignature. */ owner: TAccountMetas[2]; /** Rent sysvar. */ rent: TAccountMetas[3]; }; data: InitializeAccountInstructionData; }; export declare function parseInitializeAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeAccountInstruction; //# sourceMappingURL=initializeAccount.d.ts.map