1 | /**
|
2 | * @module Core
|
3 | */
|
4 | import { IResolver, ICallback } from '../Contracts';
|
5 | /**
|
6 | * Hook class is used for running the group hooks.
|
7 | */
|
8 | export declare class Hook<T extends any[]> {
|
9 | private _resolveFn;
|
10 | private _fn;
|
11 | private _hookLifecycle;
|
12 | constructor(_resolveFn: IResolver<T>, _fn: ICallback<T>, _hookLifecycle: string);
|
13 | /**
|
14 | * Run the hook. The hooks will raise errors and the parent test or
|
15 | * group should emit required events for them.
|
16 | */
|
17 | run(): Promise<void>;
|
18 | }
|