export function browserSyncularNetworkStatusSource() {
    const target = globalThis;
    if (typeof target.navigator?.onLine !== 'boolean' &&
        (!target.addEventListener || !target.removeEventListener)) {
        return undefined;
    }
    return {
        isOnline: () => target.navigator?.onLine,
        addEventListener: target.addEventListener
            ? (type, listener) => target.addEventListener?.(type, listener)
            : undefined,
        removeEventListener: target.removeEventListener
            ? (type, listener) => target.removeEventListener?.(type, listener)
            : undefined,
    };
}
//# sourceMappingURL=network.js.map