/**
 * 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 { combineCodec, getEnumDecoder, getEnumEncoder, } from "@solana/kit";
export var MathError;
(function (MathError) {
    MathError[MathError["MathOverflow"] = 0] = "MathOverflow";
    MathError[MathError["MathUnderflow"] = 1] = "MathUnderflow";
    MathError[MathError["ErrorInDivision"] = 2] = "ErrorInDivision";
})(MathError || (MathError = {}));
export function getMathErrorEncoder() {
    return getEnumEncoder(MathError);
}
export function getMathErrorDecoder() {
    return getEnumDecoder(MathError);
}
export function getMathErrorCodec() {
    return combineCodec(getMathErrorEncoder(), getMathErrorDecoder());
}
//# sourceMappingURL=mathError.js.map