/** * 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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { MOONSHOT_BLINDBOX_SMART_CONTRACT_PROGRAM_ADDRESS } from '../programs'; import { type RevokeRoleArgs, type RevokeRoleArgsArgs } from '../types'; export declare const REVOKE_ROLE_DISCRIMINATOR: Uint8Array; export declare function getRevokeRoleDiscriminatorBytes(): ReadonlyUint8Array; export type RevokeRoleInstruction = string, TAccountConfig extends string | AccountMeta = string, TAccountAccountToRevoke extends string | AccountMeta = string, TAccountCapability extends string | AccountMeta = string, TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOwner extends string ? WritableSignerAccount & AccountSignerMeta : TAccountOwner, TAccountConfig extends string ? WritableAccount : TAccountConfig, TAccountAccountToRevoke extends string ? ReadonlyAccount : TAccountAccountToRevoke, TAccountCapability extends string ? WritableAccount : TAccountCapability, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts ]>; export type RevokeRoleInstructionData = { discriminator: ReadonlyUint8Array; args: RevokeRoleArgs; }; export type RevokeRoleInstructionDataArgs = { args: RevokeRoleArgsArgs; }; export declare function getRevokeRoleInstructionDataEncoder(): FixedSizeEncoder; export declare function getRevokeRoleInstructionDataDecoder(): FixedSizeDecoder; export declare function getRevokeRoleInstructionDataCodec(): FixedSizeCodec; export type RevokeRoleAsyncInput = { owner: TransactionSigner; config: Address; accountToRevoke: Address; capability: Address; eventAuthority?: Address; program: Address; args: RevokeRoleInstructionDataArgs['args']; }; export declare function getRevokeRoleInstructionAsync(input: RevokeRoleAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type RevokeRoleInput = { owner: TransactionSigner; config: Address; accountToRevoke: Address; capability: Address; eventAuthority: Address; program: Address; args: RevokeRoleInstructionDataArgs['args']; }; export declare function getRevokeRoleInstruction(input: RevokeRoleInput, config?: { programAddress?: TProgramAddress; }): RevokeRoleInstruction; export type ParsedRevokeRoleInstruction = { programAddress: Address; accounts: { owner: TAccountMetas[0]; config: TAccountMetas[1]; accountToRevoke: TAccountMetas[2]; capability: TAccountMetas[3]; eventAuthority: TAccountMetas[4]; program: TAccountMetas[5]; }; data: RevokeRoleInstructionData; }; export declare function parseRevokeRoleInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRevokeRoleInstruction; //# sourceMappingURL=revokeRole.d.ts.map