"use strict";
/**
 * Environment detection utilities
 * Common functions to detect runtime environment (Node.js vs Browser)
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNode = isNode;
exports.isBrowser = isBrowser;
/**
 * Check if running in Node.js environment
 * Returns true if process.versions.node exists
 */
function isNode() {
    return typeof process !== "undefined" && !!process.versions?.node;
}
/**
 * Check if running in browser environment
 * Returns true if window and document are defined
 */
function isBrowser() {
    return typeof window !== "undefined" && typeof document !== "undefined";
}
