/** * Web fallback implementation of the `DeviceInfo` HybridObject. * * Nitro's native bindings do not exist in a browser / SSR runtime, so importing * the native `DeviceInfoModule` there throws at load time (the upstream * `react-native-nitro-modules` web stub is a Proxy that throws on any access). * This module provides a pure-JS object that satisfies the full `DeviceInfo` * interface so that `react-native-web`, Next.js SSR, and plain webpack builds can * import the package without crashing. * * Value policy: * - Where a browser API can supply a real answer (user agent, language, screen * orientation, battery, memory hint) we read it, guarded for SSR. * - Otherwise we return the same honest constants the native side uses for an * unsupported platform ("unknown" / -1 / false / [] / 0). We deliberately do * NOT fabricate plausible-looking device values. */ import type { DeviceInfo } from './DeviceInfo.nitro'; /** * Web fallback singleton. The explicit `: DeviceInfo` annotation forces this * object to implement every interface member at compile time — a missing or * mistyped member is a `tsc` error, which is the exhaustiveness guarantee. */ declare const webDeviceInfo: DeviceInfo; /** * Web variant of {@link createDeviceInfo}. Returns the shared web fallback * singleton; there is no per-instance native state to allocate. */ export declare function createDeviceInfo(): DeviceInfo; export { webDeviceInfo }; //# sourceMappingURL=DeviceInfo.web.d.ts.map