/**
 * 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 Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit';
import { MESSAGE_TRANSMITTER_PROGRAM_ADDRESS } from '../programs';
export declare const IS_NONCE_USED_DISCRIMINATOR: Uint8Array;
export declare function getIsNonceUsedDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type IsNonceUsedInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_PROGRAM_ADDRESS, TAccountUsedNonces extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
    TAccountUsedNonces extends string ? ReadonlyAccount<TAccountUsedNonces> : TAccountUsedNonces,
    ...TRemainingAccounts
]>;
export type IsNonceUsedInstructionData = {
    discriminator: ReadonlyUint8Array;
    nonce: bigint;
};
export type IsNonceUsedInstructionDataArgs = {
    nonce: number | bigint;
};
export declare function getIsNonceUsedInstructionDataEncoder(): Encoder<IsNonceUsedInstructionDataArgs>;
export declare function getIsNonceUsedInstructionDataDecoder(): Decoder<IsNonceUsedInstructionData>;
export declare function getIsNonceUsedInstructionDataCodec(): Codec<IsNonceUsedInstructionDataArgs, IsNonceUsedInstructionData>;
export type IsNonceUsedInput<TAccountUsedNonces extends string = string> = {
    /** Account will be explicitly loaded to avoid error when it's not initialized */
    usedNonces: Address<TAccountUsedNonces>;
    nonce: IsNonceUsedInstructionDataArgs['nonce'];
};
export declare function getIsNonceUsedInstruction<TAccountUsedNonces extends string, TProgramAddress extends Address = typeof MESSAGE_TRANSMITTER_PROGRAM_ADDRESS>(input: IsNonceUsedInput<TAccountUsedNonces>, config?: {
    programAddress?: TProgramAddress;
}): IsNonceUsedInstruction<TProgramAddress, TAccountUsedNonces>;
export type ParsedIsNonceUsedInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        /** Account will be explicitly loaded to avoid error when it's not initialized */
        usedNonces: TAccountMetas[0];
    };
    data: IsNonceUsedInstructionData;
};
export declare function parseIsNonceUsedInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIsNonceUsedInstruction<TProgram, TAccountMetas>;
