"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.__ΩLength = exports.__ΩNullableMySQLCoordinate = exports.__ΩMySQLCoordinate = exports.Coordinate = exports.__ΩUuidString = void 0;
/*@ts-ignore*/
var { __ΩTypeAnnotation } = require('@deepkit/core');
/*@ts-ignore*/
var { __ΩMySQL, __ΩValidate } = require('@deepkit/type');
const type_1 = require("@deepkit/type");
const __ΩUuidString = [() => __ΩTypeAnnotation, "dksf:type", "uuid", 'UuidString', 'P&.".#o!#Kw$y'];
exports.__ΩUuidString = __ΩUuidString;
class Coordinate {
}
exports.Coordinate = Coordinate;
Coordinate.__type = ['x', 'y', 'Coordinate', '\'3!\'3"5w#'];
const __ΩMySQLCoordinate = [() => Coordinate, () => __ΩMySQL, "point", 'type', 'MySQLCoordinate', 'PP7!P.#4$Mo""Kw%y'];
exports.__ΩMySQLCoordinate = __ΩMySQLCoordinate;
const __ΩNullableMySQLCoordinate = [() => Coordinate, () => __ΩMySQL, "point", 'type', 'NullableMySQLCoordinate', 'PPP7!,JP.#4$Mo""Kw%y'];
exports.__ΩNullableMySQLCoordinate = __ΩNullableMySQLCoordinate;
function _validateLength(value, _type, length) {
    if (typeof value === 'string' && value.length !== length) {
        return new type_1.ValidatorError('invalidLength', `Value must be exactly ${length} characters long.`);
    }
}
_validateLength.__type = ['value', 'Type', '_type', 'length', '_validateLength', 'P&2!"w"2#\'2$"/%'];
const __ΩLength = ['T', () => __ΩValidate, () => _validateLength, () => __ΩTypeAnnotation, "dksf:length", 'Length', 'b!P&i#e"!o"#.%e"!o$#Kw&y'];
exports.__ΩLength = __ΩLength;
//# sourceMappingURL=types.js.map