UNPKG

559 BTypeScriptView Raw
1export declare type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Desktop' | 'GamingConsole' | 'unknown';
2export declare type BatteryState = 'unknown' | 'unplugged' | 'charging' | 'full';
3export interface PowerState {
4 batteryLevel: number;
5 batteryState: BatteryState;
6 lowPowerMode: boolean;
7 [key: string]: any;
8}
9export interface LocationProviderInfo {
10 [key: string]: boolean;
11}
12export interface AsyncHookResult<T> {
13 loading: boolean;
14 result: T;
15}
16export declare type AvailableCapacityType = 'total' | 'important' | 'opportunistic';