/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import { Mapper as M } from "@vertexvis/utils";
export const toPbBoolValue = toPbScalarWrapper();
export const toPbFloatValue = toPbScalarWrapper();
export const toPbStringValue = toPbScalarWrapper();
export const fromPbBoolValue = fromPbScalarWrapper();
export const fromPbBytesValue = fromPbScalarWrapper();
export const fromPbStringValue = fromPbScalarWrapper();
function toPbScalarWrapper() {
    return M.defineMapper((value) => (value != null ? { value } : undefined), (value) => value);
}
function fromPbScalarWrapper() {
    return M.defineMapper((value) => (value === null || value === void 0 ? void 0 : value.value) || undefined, (value) => value);
}
//# sourceMappingURL=scalar.js.map
