import { MochaReporter } from "../task-generators/mocha";
import { AbsPosixPath } from "../types";
import { SpawnOptions, SpawnResult } from "./node-async";
export declare function execMocha(args?: string[], options?: SpawnOptions): Promise<SpawnResult>;
export interface Sources {
    baseDir: string;
    specs: string[];
}
export declare function getSources(options: {
    mjs: boolean;
    testDir: AbsPosixPath;
}): Sources;
/**
 * Return the command line arguments equivalent to this task
 *
 * @param options Mocha options
 * @return Command line arguments
 */
export declare function getCommand(options: GetCommandArgsOptions): string[];
export interface GetCommandArgsOptions {
    testDir: AbsPosixPath;
    reporter: MochaReporter;
    colors: boolean;
    mjs: boolean;
}
export declare function getCommandArgs(options: GetCommandArgsOptions): string[];
export interface RunOptions {
    cwd: AbsPosixPath;
    testDir: AbsPosixPath;
    reporter: MochaReporter;
    mjs: boolean;
    colors: boolean;
}
export declare function run(options: RunOptions): Promise<void>;
