/// import { EventEmitter } from "events"; import { FileEvent } from "../enum"; interface WatcherOptions { path: string; frequency?: number; monitor?: boolean; } declare interface Watcher { on(event: FileEvent.Modified, listener: (file: string) => void): this; } declare class Watcher extends EventEmitter { path: string; monitor: boolean; frequency: number; interval: NodeJS.Timeout | undefined; lastModified: Date | undefined; constructor({ path, frequency, monitor }: WatcherOptions); read(): Promise; } export default Watcher;