UNPKG

gebeya-telegram-otp

Version:

Reusable Telegram phone verification components for React applications

35 lines 1.15 kB
/** * Device type enumeration for different device categories */ export type DeviceType = "mobile" | "tablet" | "desktop"; /** * Device detection result interface containing all device information */ export interface DeviceDetectionResult { /** True if the device is identified as a mobile device */ isMobile: boolean; /** True if the device is identified as a tablet */ isTablet: boolean; /** True if the device is identified as a desktop */ isDesktop: boolean; /** The specific device type category */ deviceType: DeviceType; /** The user agent string from the browser */ userAgent: string; /** Current screen width in pixels */ screenWidth: number; /** True if the device supports touch input */ hasTouch: boolean; } /** * Device breakpoints interface defining screen size thresholds */ export interface DeviceBreakpoints { /** Mobile device breakpoint (up to 768px) */ mobile: number; /** Tablet device breakpoint (up to 1024px) */ tablet: number; /** Desktop device breakpoint (1024px and above) */ desktop: number; } //# sourceMappingURL=device.d.ts.map