/** * @file Utility Functions for Capability Detection * @description Browser capability detection utilities (Fast Refresh compliant). */ /** * Detect browser capabilities */ export declare function detectCapabilities(): { esModules: boolean; asyncAwait: boolean; webGL: boolean; webGL2: boolean; webP: boolean; avif: boolean; serviceWorker: boolean; webWorker: boolean; sharedArrayBuffer: boolean; intersectionObserver: boolean; resizeObserver: boolean; cssGrid: boolean; containerQueries: boolean; cssHas: boolean; viewTransitions: boolean; navigationAPI: boolean; popoverAPI: boolean; webAnimations: boolean; idleCallback: boolean; intl: boolean; }; /** * Check ES modules support */ export declare function hasESModules(): boolean; /** * Check async/await support */ export declare function hasAsyncAwait(): boolean; /** * Check WebGL support */ export declare function hasWebGL(): boolean; /** * Check WebGL2 support */ export declare function hasWebGL2(): boolean; /** * Check WebP support asynchronously */ export declare function checkWebPSupport(): Promise; /** * Check AVIF support asynchronously */ export declare function checkAVIFSupport(): Promise; /** * Detect if device is mobile */ export declare function isMobileDevice(): boolean; /** * Detect if device is touch-enabled */ export declare function isTouchDevice(): boolean; /** * Check if user prefers reduced motion */ export declare function prefersReducedMotion(): boolean; /** * Check if user prefers dark mode */ export declare function prefersDarkMode(): boolean; /** * Get device pixel ratio */ export declare function getDevicePixelRatio(): number; /** * Check if browser is online */ export declare function isOnline(): boolean; /** * Get connection type */ export declare function getConnectionType(): string; /** * Check if browser supports given CSS property */ export declare function supportsCSSProperty(property: string, value: string): boolean; /** * Check if browser supports given HTML feature */ export declare function supportsHTMLFeature(feature: string): boolean;