export function isBrowser(): boolean { return typeof window !== 'undefined' && typeof document !== 'undefined'; }