UNPKG

12.6 kBTypeScriptView Raw
1import { DeviceInfoModule } from './internal/privateTypes';
2import type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState } from './internal/types';
3export declare const getUniqueId: import("./internal/privateTypes").Getter<Promise<string>>, getUniqueIdSync: import("./internal/privateTypes").Getter<string>;
4export declare function syncUniqueId(): Promise<string>;
5export declare const getInstanceId: import("./internal/privateTypes").Getter<Promise<string>>, getInstanceIdSync: import("./internal/privateTypes").Getter<string>;
6export declare const getSerialNumber: import("./internal/privateTypes").Getter<Promise<string>>, getSerialNumberSync: import("./internal/privateTypes").Getter<string>;
7export declare const getAndroidId: import("./internal/privateTypes").Getter<Promise<string>>, getAndroidIdSync: import("./internal/privateTypes").Getter<string>;
8export declare const getIpAddress: import("./internal/privateTypes").Getter<Promise<string>>, getIpAddressSync: import("./internal/privateTypes").Getter<string>;
9export declare const isCameraPresent: import("./internal/privateTypes").Getter<Promise<boolean>>, isCameraPresentSync: import("./internal/privateTypes").Getter<boolean>;
10export declare function getMacAddress(): Promise<string>;
11export declare function getMacAddressSync(): string;
12export declare const getDeviceId: () => string;
13export declare const getManufacturer: import("./internal/privateTypes").Getter<Promise<string>>, getManufacturerSync: import("./internal/privateTypes").Getter<string>;
14export declare const getModel: () => string;
15export declare const getBrand: () => string;
16export declare const getSystemName: () => string;
17export declare const getSystemVersion: () => string;
18export declare const getBuildId: import("./internal/privateTypes").Getter<Promise<string>>, getBuildIdSync: import("./internal/privateTypes").Getter<string>;
19export declare const getApiLevel: import("./internal/privateTypes").Getter<Promise<number>>, getApiLevelSync: import("./internal/privateTypes").Getter<number>;
20export declare const getBundleId: () => string;
21export declare const getInstallerPackageName: import("./internal/privateTypes").Getter<Promise<string>>, getInstallerPackageNameSync: import("./internal/privateTypes").Getter<string>;
22export declare const getApplicationName: () => string;
23export declare const getBuildNumber: () => string;
24export declare const getVersion: () => string;
25export declare function getReadableVersion(): string;
26export declare const getDeviceName: import("./internal/privateTypes").Getter<Promise<string>>, getDeviceNameSync: import("./internal/privateTypes").Getter<string>;
27export declare const getUsedMemory: import("./internal/privateTypes").Getter<Promise<number>>, getUsedMemorySync: import("./internal/privateTypes").Getter<number>;
28export declare const getUserAgent: () => Promise<string>;
29export declare const getUserAgentSync: () => string;
30export declare const getFontScale: import("./internal/privateTypes").Getter<Promise<number>>, getFontScaleSync: import("./internal/privateTypes").Getter<number>;
31export declare const getBootloader: import("./internal/privateTypes").Getter<Promise<string>>, getBootloaderSync: import("./internal/privateTypes").Getter<string>;
32export declare const getDevice: import("./internal/privateTypes").Getter<Promise<string>>, getDeviceSync: import("./internal/privateTypes").Getter<string>;
33export declare const getDisplay: import("./internal/privateTypes").Getter<Promise<string>>, getDisplaySync: import("./internal/privateTypes").Getter<string>;
34export declare const getFingerprint: import("./internal/privateTypes").Getter<Promise<string>>, getFingerprintSync: import("./internal/privateTypes").Getter<string>;
35export declare const getHardware: import("./internal/privateTypes").Getter<Promise<string>>, getHardwareSync: import("./internal/privateTypes").Getter<string>;
36export declare const getHost: import("./internal/privateTypes").Getter<Promise<string>>, getHostSync: import("./internal/privateTypes").Getter<string>;
37export declare const getHostNames: import("./internal/privateTypes").Getter<Promise<string[]>>, getHostNamesSync: import("./internal/privateTypes").Getter<string[]>;
38export declare const getProduct: import("./internal/privateTypes").Getter<Promise<string>>, getProductSync: import("./internal/privateTypes").Getter<string>;
39export declare const getTags: import("./internal/privateTypes").Getter<Promise<string>>, getTagsSync: import("./internal/privateTypes").Getter<string>;
40export declare const getType: import("./internal/privateTypes").Getter<Promise<string>>, getTypeSync: import("./internal/privateTypes").Getter<string>;
41export declare const getBaseOs: import("./internal/privateTypes").Getter<Promise<string>>, getBaseOsSync: import("./internal/privateTypes").Getter<string>;
42export declare const getPreviewSdkInt: import("./internal/privateTypes").Getter<Promise<number>>, getPreviewSdkIntSync: import("./internal/privateTypes").Getter<number>;
43export declare const getSecurityPatch: import("./internal/privateTypes").Getter<Promise<string>>, getSecurityPatchSync: import("./internal/privateTypes").Getter<string>;
44export declare const getCodename: import("./internal/privateTypes").Getter<Promise<string>>, getCodenameSync: import("./internal/privateTypes").Getter<string>;
45export declare const getIncremental: import("./internal/privateTypes").Getter<Promise<string>>, getIncrementalSync: import("./internal/privateTypes").Getter<string>;
46export declare const isEmulator: import("./internal/privateTypes").Getter<Promise<boolean>>, isEmulatorSync: import("./internal/privateTypes").Getter<boolean>;
47export declare const isTablet: () => boolean;
48export declare const isLowRamDevice: () => boolean;
49export declare const isDisplayZoomed: () => boolean;
50export declare const isPinOrFingerprintSet: import("./internal/privateTypes").Getter<Promise<boolean>>, isPinOrFingerprintSetSync: import("./internal/privateTypes").Getter<boolean>;
51export declare function hasNotch(): boolean;
52export declare function hasDynamicIsland(): boolean;
53export declare const hasGms: import("./internal/privateTypes").Getter<Promise<boolean>>, hasGmsSync: import("./internal/privateTypes").Getter<boolean>;
54export declare const hasHms: import("./internal/privateTypes").Getter<Promise<boolean>>, hasHmsSync: import("./internal/privateTypes").Getter<boolean>;
55export declare const getFirstInstallTime: import("./internal/privateTypes").Getter<Promise<number>>, getFirstInstallTimeSync: import("./internal/privateTypes").Getter<number>;
56export declare const getInstallReferrer: import("./internal/privateTypes").Getter<Promise<string>>, getInstallReferrerSync: import("./internal/privateTypes").Getter<string>;
57export declare const getLastUpdateTime: import("./internal/privateTypes").Getter<Promise<number>>, getLastUpdateTimeSync: import("./internal/privateTypes").Getter<number>;
58export declare const getCarrier: import("./internal/privateTypes").Getter<Promise<string>>, getCarrierSync: import("./internal/privateTypes").Getter<string>;
59export declare const getTotalMemory: import("./internal/privateTypes").Getter<Promise<number>>, getTotalMemorySync: import("./internal/privateTypes").Getter<number>;
60export declare const getMaxMemory: import("./internal/privateTypes").Getter<Promise<number>>, getMaxMemorySync: import("./internal/privateTypes").Getter<number>;
61export declare const getTotalDiskCapacity: import("./internal/privateTypes").Getter<Promise<number>>, getTotalDiskCapacitySync: import("./internal/privateTypes").Getter<number>;
62export declare function getTotalDiskCapacityOld(): Promise<number>;
63export declare function getTotalDiskCapacityOldSync(): number;
64export declare const getFreeDiskStorage: import("./internal/privateTypes").Getter<Promise<number>>, getFreeDiskStorageSync: import("./internal/privateTypes").Getter<number>;
65export declare function getFreeDiskStorageOld(): Promise<number>;
66export declare function getFreeDiskStorageOldSync(): number;
67export declare const getBatteryLevel: import("./internal/privateTypes").Getter<Promise<number>>, getBatteryLevelSync: import("./internal/privateTypes").Getter<number>;
68export declare const getPowerState: import("./internal/privateTypes").Getter<Promise<Partial<PowerState>>>, getPowerStateSync: import("./internal/privateTypes").Getter<Partial<PowerState>>;
69export declare const isBatteryCharging: import("./internal/privateTypes").Getter<Promise<boolean>>, isBatteryChargingSync: import("./internal/privateTypes").Getter<boolean>;
70export declare function isLandscape(): Promise<boolean>;
71export declare function isLandscapeSync(): boolean;
72export declare const isAirplaneMode: import("./internal/privateTypes").Getter<Promise<boolean>>, isAirplaneModeSync: import("./internal/privateTypes").Getter<boolean>;
73export declare const getDeviceType: () => string;
74export declare const getDeviceTypeSync: () => string;
75export declare const supportedAbis: import("./internal/privateTypes").Getter<Promise<string[]>>, supportedAbisSync: import("./internal/privateTypes").Getter<string[]>;
76export declare const supported32BitAbis: import("./internal/privateTypes").Getter<Promise<string[]>>, supported32BitAbisSync: import("./internal/privateTypes").Getter<string[]>;
77export declare const supported64BitAbis: import("./internal/privateTypes").Getter<Promise<string[]>>, supported64BitAbisSync: import("./internal/privateTypes").Getter<string[]>;
78export declare function hasSystemFeature(feature: string): Promise<boolean>;
79export declare function hasSystemFeatureSync(feature: string): boolean;
80export declare function isLowBatteryLevel(level: number): boolean;
81export declare const getSystemAvailableFeatures: import("./internal/privateTypes").Getter<Promise<string[]>>, getSystemAvailableFeaturesSync: import("./internal/privateTypes").Getter<string[]>;
82export declare const isLocationEnabled: import("./internal/privateTypes").Getter<Promise<boolean>>, isLocationEnabledSync: import("./internal/privateTypes").Getter<boolean>;
83export declare const isHeadphonesConnected: import("./internal/privateTypes").Getter<Promise<boolean>>, isHeadphonesConnectedSync: import("./internal/privateTypes").Getter<boolean>;
84export declare const isWiredHeadphonesConnected: import("./internal/privateTypes").Getter<Promise<boolean>>, isWiredHeadphonesConnectedSync: import("./internal/privateTypes").Getter<boolean>;
85export declare const isBluetoothHeadphonesConnected: import("./internal/privateTypes").Getter<Promise<boolean>>, isBluetoothHeadphonesConnectedSync: import("./internal/privateTypes").Getter<boolean>;
86export declare const isMouseConnected: import("./internal/privateTypes").Getter<Promise<boolean>>, isMouseConnectedSync: import("./internal/privateTypes").Getter<boolean>;
87export declare const isKeyboardConnected: import("./internal/privateTypes").Getter<Promise<boolean>>, isKeyboardConnectedSync: import("./internal/privateTypes").Getter<boolean>;
88export declare const getSupportedMediaTypeList: import("./internal/privateTypes").Getter<Promise<string[]>>, getSupportedMediaTypeListSync: import("./internal/privateTypes").Getter<string[]>;
89export declare const isTabletMode: () => Promise<boolean>;
90export declare const getAvailableLocationProviders: import("./internal/privateTypes").Getter<Promise<LocationProviderInfo>>, getAvailableLocationProvidersSync: import("./internal/privateTypes").Getter<LocationProviderInfo>;
91export declare const getBrightness: import("./internal/privateTypes").Getter<Promise<number>>, getBrightnessSync: import("./internal/privateTypes").Getter<number>;
92export declare function getDeviceToken(): Promise<string>;
93export declare function useBatteryLevel(): number | null;
94export declare function useBatteryLevelIsLow(): number | null;
95export declare function usePowerState(): Partial<PowerState>;
96export declare function useIsHeadphonesConnected(): AsyncHookResult<boolean>;
97export declare function useIsWiredHeadphonesConnected(): AsyncHookResult<boolean>;
98export declare function useIsBluetoothHeadphonesConnected(): AsyncHookResult<boolean>;
99export declare function useFirstInstallTime(): AsyncHookResult<number>;
100export declare function useDeviceName(): AsyncHookResult<string>;
101export declare function useHasSystemFeature(feature: string): AsyncHookResult<boolean>;
102export declare function useIsEmulator(): AsyncHookResult<boolean>;
103export declare function useManufacturer(): AsyncHookResult<string>;
104export declare function useBrightness(): number | null;
105export type { AsyncHookResult, DeviceType, LocationProviderInfo, PowerState };
106declare const DeviceInfo: DeviceInfoModule;
107export default DeviceInfo;