/*! Copyright (c) 2020, XAPPmedia */ import { ConditionalCheck, Request } from "stentor-models"; /** * Checks the requests attributes to see if the request originated when the * user was on a website that matches the provied pattern. * @param request - Request object * @param pattern - A string that will be matched against the request.attributes.currentUrl key, for example "google.com" * @returns - True if they are on a website that matches the pattern, false if not. */ export declare function onWebPage(request: Request, pattern: string): boolean; /** * Check if the request is the following type or types * * @param request - Request under test * @param value - Value(s) to match the type for */ export declare function isRequestType(request: Request, value: string | string[]): boolean; /** * Check if the request is for the following ID or IDs * @param request * @param value - IDs to match against */ export declare function isRequestID(request: Request, value: string | string[]): boolean; /** * Returns a RequestConditionalCheck for the provided request. * * @param request */ export declare function RequestConditionalCheck(request: Request): ConditionalCheck;