/** * .what = interface for useThen with modifiers * .why = enables useThen.only, useThen.skip, etc. */ interface UseThen { >(desc: string, fn: () => Promise | T): T; only: >(desc: string, fn: () => Promise | T) => T; skip: >(desc: string, fn: () => Promise | T) => T; skipIf: (condition: boolean) => >(desc: string, fn: () => Promise | T) => T; runIf: (condition: boolean) => >(desc: string, fn: () => Promise | T) => T; } /** * .what = register a test and capture its return value for subsequent assertions * .why = eliminates `let` declarations for sharing operation results between then blocks */ export declare const useThen: UseThen; export {};