import type { DevicePlatform } from '../types'; /** * A label a person would recognise their own browser by, e.g. `Chrome on Windows`. * * `undefined` rather than a placeholder when there is nothing to go on -- the * field is optional, and an omitted label reads back as `''`, which a UI can * render as "this device" far better than a string like `Unknown on Unknown` * can. * * Only the family and the system, never the version. A version would change the * label every few weeks on a device that has not changed, and the label exists * to be recognised rather than to be precise. */ export declare const describeDevice: () => string | undefined; /** * `'web'` when there is a DOM, `undefined` otherwise. * * Keyed on `document` and not on `navigator`, which is the distinction that * matters: React Native defines a `navigator` but no `document`, so a * navigator-based check would quietly register every mobile device as a browser * and the send path would fill in the `webpush` block instead of `android`/`apns` * -- a notification that is accepted by FCM and never shown. */ export declare const detectPlatform: () => DevicePlatform | undefined;