function hasWindow(): boolean { return typeof window !== 'undefined' } export { hasWindow }