/** * 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 PAUSE_DISCRIMINATOR = 44; export declare function getPauseDiscriminatorBytes(): ReadonlyUint8Array; export declare const PAUSE_PAUSABLE_DISCRIMINATOR = 1; export declare function getPausePausableDiscriminatorBytes(): ReadonlyUint8Array; export type PauseInstruction = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type PauseInstructionData = { discriminator: number; pausableDiscriminator: number; }; export type PauseInstructionDataArgs = {}; export declare function getPauseInstructionDataEncoder(): FixedSizeEncoder; export declare function getPauseInstructionDataDecoder(): FixedSizeDecoder; export declare function getPauseInstructionDataCodec(): FixedSizeCodec; export type PauseInput = { /** The mint. */ mint: Address; /** The pausable authority that can pause the mint. */ authority: Address | TransactionSigner; }; export declare function getPauseInstruction(input: PauseInput, config?: { programAddress?: TProgramAddress; }): PauseInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedPauseInstruction = { programAddress: Address; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The pausable authority that can pause the mint. */ authority: TAccountMetas[1]; }; data: PauseInstructionData; }; export declare function parsePauseInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPauseInstruction; //# sourceMappingURL=pause.d.ts.map