/** * @license * Copyright Neekware Inc. All Rights Reserved. * * Use of this source code is governed by a proprietary notice * that can be found at http://neekware.com/license/PRI.html */ import { IpwareClientIpOrder, IpwareData, IpwareHeaders } from './ipware.model'; /** * Check the validity of an IPv4 address */ export declare function isValidIPv4(ip: string): boolean; /** * Check the validity of an IPv6 address */ export declare function isValidIPv6(ip: string): boolean; /** * Check the validity of an IP address */ export declare function isValidIP(ip: string): boolean; /** * Given ip address string, it cleans it up */ export declare function cleanUpIP(ip: string): string; /** * Given a string, it returns a list of one or more valid IP addresses * @param str - string to be parsed * @param order - client ip order (default is `left-most`) */ export declare function getIPsFromString(str: string, order?: IpwareClientIpOrder): IpwareData; /** * Returns HTTP request headers attribute by key * @param headers HTTP request headers * @param key HTTP request header key */ export declare function getHeadersAttribute(headers: IpwareHeaders, attr: string): string; /** * Returns ip address information from the request itself */ export declare function getIpFromRequest(request: any): string;