"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_node_module = require('../node/module.js');

//#region src/smol/https.ts
/**
* @file Lazy-loader for socket-btm's `node:smol-https`. `node:smol-https` is
*   the HTTPS-flavored server entry shipped by socket-btm's smol Node binary.
*   It wraps `node:smol-http`'s `serve` with performance-oriented TLS defaults
*   (X25519+P-256 curves, pre-vetted cipher list, 24-hour session timeout) and
*   validates that TLS options are present. Returns `undefined` on stock Node +
*   non-Node runtimes. Result is cached across calls.
*
* @internal — `src/http-request/` is the natural consumer. Most
*   callers should use the standard server-side helpers, which
*   route through this when smol is present.
*/
let _smolHttps;
let _smolHttpsProbed = false;
/**
* Returns `node:smol-https` when running on the smol Node binary, otherwise
* `undefined`. Result is cached across calls.
*/
/*@__NO_SIDE_EFFECTS__*/
function getSmolHttps() {
	if (!_smolHttpsProbed) {
		_smolHttpsProbed = true;
		/* c8 ignore start - smol Node binary only. */
		if (/* @__PURE__ */ require_node_module.isNodeBuiltin("node:smol-https")) _smolHttps = require("node:smol-https");
	}
	return _smolHttps;
}

//#endregion
exports.getSmolHttps = getSmolHttps;