/** * @module Core */ /// import { IOptions } from '../Contracts'; import { Group } from '../Group'; import { EventEmitter } from 'events'; /** * Runner class is used for defining global properties * and run all the tests inside the group. */ export declare class Runner { private _groups; private _options; private _reporterFn; constructor(_groups: Group[], _options: IOptions); /** * Returns a boolean telling if any of the groups or it's tests * has errors. */ get hasErrors(): boolean; /** * Define a set of test groups to use */ useGroups(groups: Group[]): this; /** * Define custom reporter */ reporter(fn: (emitter: EventEmitter) => void): this; /** * Run all the tests inside the registered groups */ run(): Promise; }