declare module 'babel-test' { import { TransformOptions } from '@babel/core'; type TransformCallback = (code: string, options?: T) => { code: string }; type FixturesCallback = ( code: string, options: { filename: string } ) => Promise<{ code: string }>; type DoneCallback = { (...args: any[]): any; fail(error?: string | { message: string }): any; }; type LifecycleCallback = (cb: DoneCallback) => any; type FixturesOptions = { beforeEach?: LifecycleCallback; afterEach?: LifecycleCallback; beforeAll?: LifecycleCallback; afterAll?: LifecycleCallback; }; type TestRunner = ( title: string, callback: (options: { transform: TransformCallback }) => void ) => void; type FixturesRunner = ( title: string, directory: string, options?: FixturesOptions, callback?: FixturesCallback ) => void; type Helpers = { test: TestRunner & { skip: TestRunner; only: TestRunner; }; fixtures: FixturesRunner & { skip: FixturesRunner; only: FixturesRunner; }; }; export function create( options: TransformOptions | TransformCallback ): Helpers; }