import { PuffRuleSetArgs, PuffRuleSetArgsArgs } from "../types/puffRuleSetArgs.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/puffRuleSet.d.ts export declare const PUFF_RULE_SET_DISCRIMINATOR = 3; export declare function getPuffRuleSetDiscriminatorBytes(): ReadonlyUint8Array; export type PuffRuleSetInstruction = string, TAccountRuleSetPda extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountRuleSetPda extends string ? WritableAccount : TAccountRuleSetPda, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts]>; export type PuffRuleSetInstructionData = { discriminator: number; /** Identifies the RuleSet to grow by name. */ puffRuleSetArgs: PuffRuleSetArgs; }; export type PuffRuleSetInstructionDataArgs = { /** Identifies the RuleSet to grow by name. */ puffRuleSetArgs: PuffRuleSetArgsArgs; }; export declare function getPuffRuleSetInstructionDataEncoder(): Encoder; export declare function getPuffRuleSetInstructionDataDecoder(): Decoder; export declare function getPuffRuleSetInstructionDataCodec(): Codec; export type PuffRuleSetInput = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; /** The PDA account where the RuleSet is stored */ ruleSetPda: Address; /** System program */ systemProgram?: Address; puffRuleSetArgs: PuffRuleSetInstructionDataArgs["puffRuleSetArgs"]; }; /** * Grows a RuleSet PDA by reallocating additional space. * * Used to pre-allocate ("puff up") the account to the size a large * RuleSet will need before writing to it, since a single instruction * can only grow an account by a limited amount. */ export declare function getPuffRuleSetInstruction(input: PuffRuleSetInput, config?: { programAddress?: TProgramAddress; }): PuffRuleSetInstruction; export type ParsedPuffRuleSetInstruction = { programAddress: Address; accounts: { /** Payer and creator of the RuleSet */ payer: TAccountMetas[0]; /** The PDA account where the RuleSet is stored */ ruleSetPda: TAccountMetas[1]; /** System program */ systemProgram: TAccountMetas[2]; }; data: PuffRuleSetInstructionData; }; export declare function parsePuffRuleSetInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPuffRuleSetInstruction; //#endregion //# sourceMappingURL=puffRuleSet.d.ts.map