flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
15 lines (14 loc) • 589 B
TypeScript
import { iResponse, iValue } from "../interfaces";
import { ValuePromise } from "../value-promise";
export declare class JsonDoc {
jsonRoot: any;
get root(): any;
constructor(jsonRoot: any);
search: (path: string) => Promise<any>;
}
export interface JPathProvider {
jsonDoc: JsonDoc | undefined;
}
export declare const jpathSearch: (input: any, path: string) => any;
export declare const jpathFindAll: (self: JPathProvider & iResponse, path: string) => Promise<iValue[]>;
export declare const jpathFind: (self: JPathProvider & iResponse, path: string) => ValuePromise;