/** * SSR-safe base classes for browser globals that are not available in Node/SSR environments. * * Use these instead of extending browser globals directly so that class definitions * do not throw a ReferenceError at module evaluation time in SSR/Node contexts * (SvelteKit, Next.js, etc.). * * In browser environments each constant is the real global; in SSR it falls back * to a plain empty class so that `class Foo extends HTMLElementBase` is valid. */ /** True when running in an SSR/Node environment (no browser globals). */ export declare const SSR: boolean; /** SSR-safe base class for web components. */ export declare const HTMLElementBase: typeof HTMLElement; /** SSR-safe base class for pointer events. */ export declare const PointerEventBase: typeof PointerEvent; /** SSR-safe base class for keyboard events. */ export declare const KeyboardEventBase: typeof KeyboardEvent;