export function startWatch(path) {
  return window.__TAURI__.core.invoke('start_watch', { path });
}

export function stopWatch() {
  return window.__TAURI__.core.invoke('stop_watch');
}

export function onFileChanged(callback) {
  return window.__TAURI__.event.listen('file-changed', callback);
}
