/** * Ported from https://github.com/optimizely/client-js/blob/7f84e6e779288d8870cac9e17309bb4a324ec5c2/src/core/plugins/helpers/match_url.js * which is in turn ported from [optly.match.matchUrl@06b84fe4c24d26712823dff967db3632093d64fd](https://github.com/optimizely/optimizely/blob/06b84fe4c24d26712823dff967db3632093d64fd/src/www/js/shared/match.js) * Minor modifications to avoid using client-fn * * Match URL using various match types * @module */ import { Condition } from '../../models'; /** * Match URL to cond * * @param {string} url * @param {Object} cond * @param {string} cond.match * @param {string} cond.value * @returns {boolean} */ export default function (url: string, cond: Condition): boolean;