import type { Workers } from '@wdio/types';
import type { RunCommandArguments, ValueKeyIteratee } from './types.js';
export default class Watcher {
    private _configFile;
    private _args;
    private _launcher;
    private _specs;
    constructor(_configFile: string, _args: Omit<RunCommandArguments, 'configPath'>);
    watch(): Promise<void>;
    /**
     * chokidar doesn't support glob patterns. Watch the directory a pattern starts in
     * instead and ignore every file that isn't matched by one of the patterns, so
     * files created after watch mode started are picked up too.
     * @param  {string[]} filesToWatch  `filesToWatch` config option
     * @param  {string}   rootDir       directory of the wdio config file
     * @return {object}                 paths to watch and chokidar `ignored` callback
     */
    private resolveFilesToWatch;
    /**
     * return file listener callback that calls `run` method
     * @param  {Boolean}  [passOnFile=true]  if true pass on file change as parameter
     * @return {Function}                    chokidar event callback
     */
    getFileListener(passOnFile?: boolean): (spec: string) => void[];
    /**
     * helper method to get workers from worker pool of wdio runner
     * @param  predicate         filter by property value (see lodash.pickBy)
     * @param  includeBusyWorker don't filter out busy worker (default: false)
     * @return                   Object with workers, e.g. {'0-0': { ... }}
     */
    getWorkers(predicate?: ValueKeyIteratee<Workers.Worker> | null | undefined, includeBusyWorker?: boolean): Workers.WorkerPool;
    /**
     * run workers with params
     * @param  params parameters to run the worker with
     */
    run(params?: Partial<RunCommandArguments>): void;
    cleanUp(): void;
}
//# sourceMappingURL=watcher.d.ts.map