import EventBus from '../EventBus'; export declare type WatchProps = { /** * Event bus */ eventBus: EventBus; /** * Working directory * * Default: '.' */ cwd?: string; /** * Whether or not to use file polling instead of FS events * * Default: false */ polling?: boolean; /** * Which file extensions to watch * * Default: ['js', 'mjs', 'json'] */ extensions?: string[]; /** * Which paths to ignore * * Default: ['./node_modules', './docs', './git'] */ ignore?: string[]; /** * How long to sleep (in ms) when file change event is detected * * Used to avoid triggering events on every file modifications on fe. `npm install` * * Default: 200 */ delay?: number; }; declare const watch: ({ eventBus, cwd, polling, extensions, ignore, delay, }: WatchProps) => void; export default watch;