TeaSpeak-Client/imports/shared-app/clientservice/GeoLocation.d.ts

20 lines
502 B
TypeScript
Raw Normal View History

2021-02-07 14:01:37 -05:00
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 {};