import { WriteToBufferArgs, WriteToBufferArgsArgs } from "../types/writeToBufferArgs.js"; import "../types/index.js"; import { MPL_TOKEN_AUTH_RULES_PROGRAM_ADDRESS } from "../programs/mplTokenAuthRules.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, Codec, Decoder, Encoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit"; //#region src/generated/instructions/writeToBuffer.d.ts export declare const WRITE_TO_BUFFER_DISCRIMINATOR = 2; export declare function getWriteToBufferDiscriminatorBytes(): ReadonlyUint8Array; export type WriteToBufferInstruction = string, TAccountBufferPda extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountBufferPda extends string ? WritableAccount : TAccountBufferPda, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts]>; export type WriteToBufferInstructionData = { discriminator: number; /** The chunk of serialized RuleSet data to append. */ writeToBufferArgs: WriteToBufferArgs; }; export type WriteToBufferInstructionDataArgs = { /** The chunk of serialized RuleSet data to append. */ writeToBufferArgs: WriteToBufferArgsArgs; }; export declare function getWriteToBufferInstructionDataEncoder(): Encoder; export declare function getWriteToBufferInstructionDataDecoder(): Decoder; export declare function getWriteToBufferInstructionDataCodec(): Codec; export type WriteToBufferAsyncInput = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; /** The PDA account where the RuleSet buffer is stored */ bufferPda?: Address; /** System program */ systemProgram?: Address; writeToBufferArgs: WriteToBufferInstructionDataArgs["writeToBufferArgs"]; }; /** * Appends serialized RuleSet bytes to a buffer PDA. * * RuleSets larger than a single transaction can hold are streamed in * chunks to a buffer account, then applied in one `createOrUpdate` * call that reads from the buffer. */ export declare function getWriteToBufferInstructionAsync(input: WriteToBufferAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type WriteToBufferInput = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; /** The PDA account where the RuleSet buffer is stored */ bufferPda: Address; /** System program */ systemProgram?: Address; writeToBufferArgs: WriteToBufferInstructionDataArgs["writeToBufferArgs"]; }; /** * Appends serialized RuleSet bytes to a buffer PDA. * * RuleSets larger than a single transaction can hold are streamed in * chunks to a buffer account, then applied in one `createOrUpdate` * call that reads from the buffer. */ export declare function getWriteToBufferInstruction(input: WriteToBufferInput, config?: { programAddress?: TProgramAddress; }): WriteToBufferInstruction; export type ParsedWriteToBufferInstruction = { programAddress: Address; accounts: { /** Payer and creator of the RuleSet */ payer: TAccountMetas[0]; /** The PDA account where the RuleSet buffer is stored */ bufferPda: TAccountMetas[1]; /** System program */ systemProgram: TAccountMetas[2]; }; data: WriteToBufferInstructionData; }; export declare function parseWriteToBufferInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWriteToBufferInstruction; //#endregion //# sourceMappingURL=writeToBuffer.d.ts.map