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

//#region src/url/predicates.ts
/**
* @file URL type-guard predicates — `isUrl` answers whether a value parses as a
*   valid URL via `parseUrl`.
*/
/**
* Check if a value is a valid URL.
*
* @example
*   ;```typescript
*   isUrl('https://example.com') // true
*   isUrl('not a url') // false
*   isUrl(null) // false
*   ```
*/
/*@__NO_SIDE_EFFECTS__*/
function isUrl(value) {
	return (typeof value === "string" && value !== "" || value !== null && typeof value === "object") && !!/* @__PURE__ */ require_url_parse.parseUrl(value);
}

//#endregion
exports.isUrl = isUrl;