UNPKG

sveltekit-device-detector

Version:

Detect device type and render your component according to it

8 lines (7 loc) 768 B
import type { Browser, Device, Engine, OS } from '../types'; export declare const browserPayload: (isBrowser: boolean, browser: Browser, engine: Engine, os: OS, ua: string) => DevicePayload; export declare const mobilePayload: (type: DeviceType, device: Device, os: OS, ua: string) => DevicePayload; export declare const smartTvPayload: (isSmartTV: boolean, engine: Engine, os: OS, ua: string) => DevicePayload; export declare const consolePayload: (isConsole: boolean, engine: Engine, os: OS, ua: string) => DevicePayload; export declare const wearablePayload: (isWearable: boolean, engine: Engine, os: OS, ua: string) => DevicePayload; export declare const embeddedPayload: (isEmbedded: boolean, device: Device, engine: Engine, os: OS, ua: string) => DevicePayload;