import { IpApiType } from '../../types/ip/ipApi'; /** * Represents an IP address and provides methods to retrieve information about it. */ export declare class IP { private ip?; /** * A Promise that resolves to an Axios instance for making HTTP requests. * The Axios instance can be used to make HTTP requests to a server. */ private IpInstance; /** * Creates an instance of the class with an optional IP address. * @param {string} [ip] - The IP address to use for the instance. * @returns An instance of the class. */ constructor(ip?: string | undefined); /** * Retrieves information about an IP address using the IpApi service. * @param {string} ip - The IP address to retrieve information about. * @returns {Promise} - A promise that resolves to an object containing information about the IP address. */ getIpInfo: (ip: string) => Promise; /** * Determines if the given IP address is from Iran by calling an external API to retrieve * information about the IP address. * @param {string} ip - The IP address to check. * @returns {Promise} - A promise that resolves to true if the IP address is from Iran, false otherwise. */ IsIpFromIran: (ip: string) => Promise; }