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