import * as smartrx from '@push.rocks/smartrx'; import type { IWatcher, IWatcherOptions, IWatchEvent } from './interfaces.js'; /** * Rust-based file watcher using the notify crate via @push.rocks/smartrust * * Uses a Rust binary for native OS-level file watching (inotify/FSEvents/ReadDirectoryChangesW). * Works across Node.js, Deno, and Bun via smartrust's IPC bridge. */ export declare class RustWatcher implements IWatcher { private options; private bridge; private _isWatching; readonly events$: smartrx.rxjs.Subject; constructor(options: IWatcherOptions); get isWatching(): boolean; /** * Check if the Rust binary is available on this system */ static isAvailable(): Promise; start(): Promise; stop(): Promise; /** Safely emit an event, isolating subscriber errors */ private safeEmit; }