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