/**
 * 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 { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU8Decoder, getU8Encoder, } from "@solana/kit";
export function getHandleReceiveMessageParamsEncoder() {
    return getStructEncoder([
        ["remoteDomain", getU32Encoder()],
        ["sender", getAddressEncoder()],
        ["finalityThresholdExecuted", getU32Encoder()],
        ["messageBody", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
        ["authorityBump", getU8Encoder()],
    ]);
}
export function getHandleReceiveMessageParamsDecoder() {
    return getStructDecoder([
        ["remoteDomain", getU32Decoder()],
        ["sender", getAddressDecoder()],
        ["finalityThresholdExecuted", getU32Decoder()],
        ["messageBody", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
        ["authorityBump", getU8Decoder()],
    ]);
}
export function getHandleReceiveMessageParamsCodec() {
    return combineCodec(getHandleReceiveMessageParamsEncoder(), getHandleReceiveMessageParamsDecoder());
}
//# sourceMappingURL=handleReceiveMessageParams.js.map