import { CreateOrUpdateArgs, CreateOrUpdateArgsArgs } from "../types/createOrUpdateArgs.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/createOrUpdate.d.ts export declare const CREATE_OR_UPDATE_DISCRIMINATOR = 0; export declare function getCreateOrUpdateDiscriminatorBytes(): ReadonlyUint8Array; export type CreateOrUpdateInstruction = string, TAccountRuleSetPda extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountBufferPda extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountRuleSetPda extends string ? WritableAccount : TAccountRuleSetPda, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountBufferPda extends string ? ReadonlyAccount : TAccountBufferPda, ...TRemainingAccounts]>; export type CreateOrUpdateInstructionData = { discriminator: number; /** The (versioned) CBOR-serialized RuleSet to store. */ createOrUpdateArgs: CreateOrUpdateArgs; }; export type CreateOrUpdateInstructionDataArgs = { /** The (versioned) CBOR-serialized RuleSet to store. */ createOrUpdateArgs: CreateOrUpdateArgsArgs; }; export declare function getCreateOrUpdateInstructionDataEncoder(): Encoder; export declare function getCreateOrUpdateInstructionDataDecoder(): Decoder; export declare function getCreateOrUpdateInstructionDataCodec(): Codec; export type CreateOrUpdateAsyncInput = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; /** The PDA account where the RuleSet is stored */ ruleSetPda: Address; /** System program */ systemProgram?: Address; /** The buffer to copy a complete ruleset from */ bufferPda?: Address; createOrUpdateArgs: CreateOrUpdateInstructionDataArgs["createOrUpdateArgs"]; }; /** * Creates or updates a RuleSet stored in a program-derived account. * * A RuleSet is a named, versioned collection of authorization rules * owned by its creator. Each call appends a new revision to the PDA; * existing revisions are preserved so previously-signed operations * remain reproducible. Pass a serialized RuleSet built with the * auth-rules Rust/JS SDK. */ export declare function getCreateOrUpdateInstructionAsync(input: CreateOrUpdateAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type CreateOrUpdateInput = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; /** The PDA account where the RuleSet is stored */ ruleSetPda: Address; /** System program */ systemProgram?: Address; /** The buffer to copy a complete ruleset from */ bufferPda?: Address; createOrUpdateArgs: CreateOrUpdateInstructionDataArgs["createOrUpdateArgs"]; }; /** * Creates or updates a RuleSet stored in a program-derived account. * * A RuleSet is a named, versioned collection of authorization rules * owned by its creator. Each call appends a new revision to the PDA; * existing revisions are preserved so previously-signed operations * remain reproducible. Pass a serialized RuleSet built with the * auth-rules Rust/JS SDK. */ export declare function getCreateOrUpdateInstruction(input: CreateOrUpdateInput, config?: { programAddress?: TProgramAddress; }): CreateOrUpdateInstruction; export type ParsedCreateOrUpdateInstruction = { 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]; /** The buffer to copy a complete ruleset from */ bufferPda?: TAccountMetas[3] | undefined; }; data: CreateOrUpdateInstructionData; }; export declare function parseCreateOrUpdateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateOrUpdateInstruction; //#endregion //# sourceMappingURL=createOrUpdate.d.ts.map