TeaSpeak-Client/imports/shared-app/clientservice/GeoLocation.d.ts
2021-02-07 20:01:37 +01:00

20 lines
502 B
TypeScript

interface GeoLocationInfo {
country: string;
city?: string;
region?: string;
timezone?: string;
}
declare class GeoLocationProvider {
private readonly resolver;
private currentResolverIndex;
private cachedInfo;
private lookupPromise;
constructor();
loadCache(): void;
private doLoadCache;
queryInfo(timeout: number): Promise<GeoLocationInfo | undefined>;
private doQueryInfo;
}
export declare let geoLocationProvider: GeoLocationProvider;
export {};