import { y as parseStrictPositiveInteger } from "./number-coercion-CU7MBp2A.js";
import "./parse-finite-number-D0XNMNbx.js";
//#region src/infra/tcp-port.ts
const MAX_TCP_PORT = 65535;
function parseTcpPort(raw) {
	if (raw === void 0 || raw === null) return null;
	const parsed = parseStrictPositiveInteger(raw);
	if (parsed === void 0 || parsed > 65535) return null;
	return parsed;
}
//#endregion
export { parseTcpPort as n, MAX_TCP_PORT as t };
