extends EventEmitter implements StatWatcher { readonly fakeFs: FakeFS
; readonly path: P; readonly bigint: boolean; private status; private changeListeners; private lastStats; private startTimeout; static create
(fakeFs: FakeFS
, path: P, opts?: CustomStatWatcherOptions): CustomStatWatcher
; private constructor(); start(): void; stop(): void; stat(): Stats | BigIntStats; /** * Creates an interval whose callback compares the current stats with the previous stats and notifies all listeners in case of changes. * * @param opts.persistent Decides whether the interval should be immediately unref-ed. */ makeInterval(opts: ListenerOptions): NodeJS.Timeout; /** * Registers a listener and assigns it an interval. */ registerChangeListener(listener: WatchFileCallback, opts: ListenerOptions): void; /** * Unregisters the listener and clears the assigned interval. */ unregisterChangeListener(listener: WatchFileCallback): void; /** * Unregisters all listeners and clears all assigned intervals. */ unregisterAllChangeListeners(): void; hasChangeListeners(): boolean; /** * Refs all stored intervals. */ ref(): this; /** * Unrefs all stored intervals. */ unref(): this; }