[api] add config option to specify chokidar fs watch events