UNPKG

@push.rocks/smartchok

Version:

A cross-runtime file watcher with glob pattern support for Node.js, Deno, and Bun.

12 lines (11 loc) 484 B
import type { IWatcher, IWatcherOptions, IWatchEvent, TWatchEventType } from './interfaces.js'; export type { IWatcher, IWatcherOptions, IWatchEvent, TWatchEventType }; /** * Creates a platform-appropriate file watcher based on the current runtime * Uses @push.rocks/smartenv for runtime detection */ export declare function createWatcher(options: IWatcherOptions): Promise<IWatcher>; /** * Default watcher options */ export declare const defaultWatcherOptions: IWatcherOptions;