/** * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const REVOKE_DISCRIMINATOR = 5; export declare function getRevokeDiscriminatorBytes(): ReadonlyUint8Array; export type RevokeInstruction = string, TAccountOwner extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSource extends string ? WritableAccount : TAccountSource, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, ...TRemainingAccounts ]>; export type RevokeInstructionData = { discriminator: number; }; export type RevokeInstructionDataArgs = {}; export declare function getRevokeInstructionDataEncoder(): FixedSizeEncoder; export declare function getRevokeInstructionDataDecoder(): FixedSizeDecoder; export declare function getRevokeInstructionDataCodec(): FixedSizeCodec; export type RevokeInput = { /** The source account. */ source: Address; /** The source account owner or its multisignature. */ owner: Address | TransactionSigner; multiSigners?: Array; }; export declare function getRevokeInstruction(input: RevokeInput, config?: { programAddress?: TProgramAddress; }): RevokeInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner>; export type ParsedRevokeInstruction = { programAddress: Address; accounts: { /** The source account. */ source: TAccountMetas[0]; /** The source account owner or its multisignature. */ owner: TAccountMetas[1]; }; data: RevokeInstructionData; }; export declare function parseRevokeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRevokeInstruction; //# sourceMappingURL=revoke.d.ts.map