export function runWatchMain(params?: { spawn?: ( cmd: string, args: string[], options: unknown, ) => { kill?: (signal?: NodeJS.Signals | number) => void; on: (event: "exit", cb: (code: number | null, signal: string | null) => void) => void; }; createWatcher?: ( paths: string[], options: { ignoreInitial: boolean; ignored: (watchPath: string) => boolean; }, ) => { on: (event: "add" | "change" | "unlink" | "error", cb: (arg?: unknown) => void) => void; close?: () => Promise | void; }; watchPaths?: string[]; process?: NodeJS.Process; cwd?: string; args?: string[]; env?: NodeJS.ProcessEnv; now?: () => number; }): Promise;