import UAParser from 'ua-parser-js'; export declare class BrowserHelper { /** * To get the User Agent Info * @returns - The user agent data */ getUserAgent: () => UAParser.IResult; /** * This method is to check whether the device is a desktop device or not * @returns - True if the device is desktop device or not */ isDesktopDevice: () => boolean; /** * To check the property which exists in that device * @param object - The object which is needed to be check for property ex:windows * @param propertyName - The property name which is given in array to check that property * exists in the object ex windows[navigator] * @returns - If the property is present then it returns true or false. */ checkDeviceHasProperty: (object: any, propertyName: string[]) => boolean; /** * This method is to check the Browser Compatibility and returns compatibility of the * browser and returns a boolean data if compatible else get missing properties * @returns - The object with fullAccess, cameraAccess and MissingProperties */ checkBrowserCompatibility: () => { fullAccess: boolean; cameraAccess: boolean; missingProperties: any[]; }; }