import EventBus from './EventBus'; export interface LibProps { /** * Command for child process */ command: string; /** * Debug flag. Log all events to console */ debug?: boolean; /** * 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; /** * Executable to run the command with * * Default: "node" */ exec?: string; /** * File extensions to watch */ ext?: string[]; /** * Which file paths to ignore */ ignore?: string[]; /** * Log things to console */ logging?: boolean; /** * Use polling instead of file system events * * Useful for fe. running on Docker container where FS events arent propagated to host */ legacywatch?: boolean; /** * Wheter or not to do full sync on first run * * Default: false */ skipFirstSync?: boolean; /** * Directory to watch file events for */ watch?: string; /** * Package manager (fe. "npm", "yarn", "pnpm") */ pmExec?: string; } declare const _default: ({ command, debug, delay, exec, ext, legacywatch, logging, skipFirstSync, pmExec, watch: watchdir, ignore, }: LibProps) => EventBus; /** * Setup main process * * Set sensible defaults */ export default _default;