"use strict";
/**
 * 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUsedNonceCloseInfoEncoder = getUsedNonceCloseInfoEncoder;
exports.getUsedNonceCloseInfoDecoder = getUsedNonceCloseInfoDecoder;
exports.getUsedNonceCloseInfoCodec = getUsedNonceCloseInfoCodec;
const kit_1 = require("@solana/kit");
function getUsedNonceCloseInfoEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['canCloseAfter', (0, kit_1.getU64Encoder)()],
        ['canCloseNow', (0, kit_1.getBooleanEncoder)()],
    ]);
}
function getUsedNonceCloseInfoDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['canCloseAfter', (0, kit_1.getU64Decoder)()],
        ['canCloseNow', (0, kit_1.getBooleanDecoder)()],
    ]);
}
function getUsedNonceCloseInfoCodec() {
    return (0, kit_1.combineCodec)(getUsedNonceCloseInfoEncoder(), getUsedNonceCloseInfoDecoder());
}
