import { Spec as SpecBase } from '@hayspec/core'; import { Stage } from './stage'; import { Context } from './context'; declare type ContextHandler = (context: Context, stage: Stage) => (void | Promise); export declare class Spec extends SpecBase { stage: Stage; constructor(stage?: Stage, parent?: Spec); test(message: string, handler: ContextHandler): this; skip(message: string, handler?: ContextHandler): this; protected createStage(): Stage; protected createContext(): Context; } export {};