import { fromBase64, toBase64 } from "@peerbit/crypto";
export const resolveValue = (value) => value.type === "simple" ? value.value : fromBase64(value.base64);
export const encodeValue = (value) => {
    if (value instanceof Uint8Array) {
        return { type: "uint8array", base64: toBase64(value) };
    }
    return { type: "simple", value };
};
//# sourceMappingURL=sqlite3-messages.worker.js.map