'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const BooleanOrString = {
  parse(value) {
    if (value === '') return true;
    if (value === 'false') return false;
    return String(value);
  },
  serialize(value) {
    if (typeof value === 'boolean') {
      return value ? '' : null;
    }
    return String(value);
  }
};

exports.BooleanOrString = BooleanOrString;
