/** * Matcher for "ip" condition * * Ported from https://github.com/optimizely/client-js/tree/2c185f735f0e87800fdcc35727cb413d11b107d7/src/plugins/feature_ip/matchers * Migrated to is-in-subnet for CIDR evaluation, and to using String.prototype.startsWith. * @module */ import { Condition, ProfileAttributes } from '../../../models'; declare const _default: { fieldsNeeded: string[]; /** * @param {String|null} visitorIP * A v4 or v6 IP address for the visitor, if one is known. * @param {Object} cond * @returns {Boolean|undefined} * Whether the given address satisfies the given condition. * Undefined, if the condition specifies an invalid CIDR or regex pattern, or * if the visitorIP was unknown. */ match(attributes: ProfileAttributes, cond: Condition): boolean | undefined; }; export default _default;