@amaui/utils
Version:
26 lines (25 loc) • 711 B
TypeScript
import { ICountry } from './countries';
export interface IUserIPandLocation {
ip_address: string;
country_code: string;
}
export interface IUserOSandBrowser {
browser: {
name: string;
version: string;
major_version: string;
agent: string;
language: string;
};
os: {
platform: string;
};
}
export interface IUserLocalInfo extends IUserOSandBrowser {
ip_address: string;
country: ICountry;
}
export declare const getUserIPandLocation: () => Promise<IUserIPandLocation>;
export declare const getUserOSandBrowser: () => IUserOSandBrowser;
declare const getUserLocalInfo: () => Promise<IUserLocalInfo>;
export default getUserLocalInfo;