/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { LOADER_V3_PROGRAM_ADDRESS } from '../programs'; export declare const WRITE_DISCRIMINATOR = 1; export declare function getWriteDiscriminatorBytes(): ReadonlyUint8Array; export type WriteInstruction = string, TAccountBufferAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountBufferAccount extends string ? WritableAccount : TAccountBufferAccount, TAccountBufferAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountBufferAuthority, ...TRemainingAccounts ]>; export type WriteInstructionData = { discriminator: number; offset: number; bytes: ReadonlyUint8Array; }; export type WriteInstructionDataArgs = { offset: number; bytes: ReadonlyUint8Array; }; export declare function getWriteInstructionDataEncoder(): Encoder; export declare function getWriteInstructionDataDecoder(): Decoder; export declare function getWriteInstructionDataCodec(): Codec; export type WriteInput = { /** Buffer account. */ bufferAccount: Address; /** Buffer authority. */ bufferAuthority: TransactionSigner; offset: WriteInstructionDataArgs['offset']; bytes: WriteInstructionDataArgs['bytes']; }; export declare function getWriteInstruction(input: WriteInput, config?: { programAddress?: TProgramAddress; }): WriteInstruction; export type ParsedWriteInstruction = { programAddress: Address; accounts: { /** Buffer account. */ bufferAccount: TAccountMetas[0]; /** Buffer authority. */ bufferAuthority: TAccountMetas[1]; }; data: WriteInstructionData; }; export declare function parseWriteInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWriteInstruction; //# sourceMappingURL=write.d.ts.map