UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

12 lines (11 loc) 786 B
import { iAssertionContext, iValue, iResponse, FindAllOptions, FindOptions } from "./interfaces"; export declare function wrapAsValue(context: iAssertionContext, data: any, name: string, source?: any): iValue; export declare function findOne(scope: iValue | iResponse, selector: string, params: FindParams): Promise<iValue>; export declare type FindParams = { contains: string | null; matches: RegExp | null; opts: FindOptions | FindAllOptions | null; }; export declare function getFindName(params: FindParams, selector: string | string[], i: number | null): string; export declare function getFindParams(a: any, b: any): FindParams; export declare function filterFind(elements: iValue[], contains?: string | RegExp | null, opts?: FindAllOptions | null): Promise<iValue[]>;