react-native-position
Version:
react-native-position
33 lines • 876 B
TypeScript
type WifisType = {
bssid: string;
ssid: string;
rssi: number;
};
type CellType = {
cellId: string;
rat: number;
lac: string;
rssi: number;
simOperator: string;
type: 'GsmCellLocation' | 'CdmaCellLocation' | 'CellInfoGsm' | 'CellInfoCdma' | 'CellInfoLte' | 'CellInfoWcdma';
};
type NeighborCellType = {
rssi: number;
cNum: number;
pId: number;
};
type ConfigType = {
hmsKey: string;
GNSStimeout: number;
};
export declare function getCurrentPosition(config: ConfigType): Promise<{
latitude: number;
longitude: number;
from: 'GNSS' | 'Cell' | 'Wifi';
HMSResult?: any;
}>;
export declare function getCellInfo(): Promise<CellType>;
export declare function getWifis(): Promise<WifisType[]>;
export declare function getNeighborCell(): Promise<NeighborCellType[]>;
export {};
//# sourceMappingURL=index.d.ts.map