/** * @name isCrawler * @namespace js.is * @type Function * @platform js * @status stable * * Detect if request is from a crawler (google bot, etc...) or not * * @param {String} [ua=navigator.userAgent] The user agent on which to make the test * @return {Boolean} true if is a crawler, false if not * * @todo tests * * @snippet __isCrawler() * * @example js * import { __isCrawler } from '@lotsof/sugar/is' * if (__isCrawler()) { * // do something cool * } * * @see https://www.npmjs.com/package/isbot * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __isCrawler(ua?: string): boolean;