import type { WatcherOptions } from 'watchpack'; export declare type WatchFunc = () => Promise; export declare type Options = Omit & { dir: string; watch?: boolean; }; export declare function watcher(func: WatchFunc, options: Options): Promise;