export declare function watch(p: string, format: "json" | "text"): Promise;