import { toOptionalString } from "./string/coerce.js";
function trimToUndefined(value) {
  if (typeof value !== "string") return void 0;
  const trimmed = value.trim();
  return trimmed.length > 0 ? trimmed : void 0;
}
function parseCommaSeparatedList(value) {
  if (typeof value !== "string") return [];
  return value.split(",").map((entry) => entry.trim()).filter(Boolean);
}
export {
  parseCommaSeparatedList,
  toOptionalString,
  trimToUndefined
};
//# sourceMappingURL=string.js.map
