import * as smartrx from '@push.rocks/smartrx'; import type { IWatcher, IWatcherOptions, IWatchEvent } from './interfaces.js'; /** * Node.js/Bun file watcher using chokidar * * Chokidar handles all the edge cases: * - Atomic writes (temp file + rename) * - Inode tracking * - Cross-platform differences * - Debouncing * - Write stabilization */ export declare class NodeWatcher implements IWatcher { private options; private watcher; private _isWatching; private _preExistingHandles; readonly events$: smartrx.rxjs.Subject; constructor(options: IWatcherOptions); /** Collect all current FSWatcher handles from the process */ private _getFsWatcherHandles; get isWatching(): boolean; start(): Promise; stop(): Promise; /** Safely emit an event, isolating subscriber errors */ private safeEmit; }