UNPKG

@tef-novum/webview-bridge

Version:

JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.

49 lines (48 loc) 1.71 kB
export declare type LocatorSdkMode = string; export declare const setupLocatorSdkConfig: (config: Record<string, unknown>) => Promise<void>; export declare const getLocatorSdkState: () => Promise<{ state: string; }>; export declare const setLocatorSdkMode: (mode: LocatorSdkMode, correlation?: Record<string, string> | undefined) => Promise<void>; export declare const getLocatorJwtToken: () => Promise<{ token: string; }>; export declare const getLocatorPendingPermissions: () => Promise<{ permissions: Array<string>; }>; export declare const getLocatorSdkVersion: () => Promise<{ version: string; }>; export declare const getLocatorSdkSession: () => Promise<{ session: { id: string; startAt: number; endAt: number | null; }; }>; export declare const getLocatorSdkMode: () => Promise<{ mode: LocatorSdkMode; }>; export declare const getLocatorSdkConfig: () => Promise<{ config: Record<string, unknown> | null; }>; declare type PermissionStatus = 'granted' | 'denied'; export declare const requestPermissionLocation: () => Promise<{ status: PermissionStatus; }>; export declare const requestPermissionBackgroundLocation: () => Promise<{ status: PermissionStatus; }>; export declare const requestPermissionMicrophone: () => Promise<{ status: PermissionStatus; }>; export declare const requestPermissionNotifications: () => Promise<{ status: PermissionStatus; }>; export declare const requestPermissionCriticalAlerts: () => Promise<{ status: PermissionStatus; }>; export declare const requestPermissionBatteryOptimization: () => Promise<{ status: PermissionStatus; }>; export {};