import { ScriptSync } from './ScriptSync.js'; import { SyncResult } from './ScriptSyncModels.js'; export interface WatchOptions { directory: string; scriptType?: string; autoSync?: boolean; onSync?: (result: SyncResult) => void; } /** * ScriptWatcher watches a directory for file changes and automatically * pushes updated scripts to ServiceNow using ScriptSync. */ export declare class ScriptWatcher { private _logger; private _scriptSync; private _watcher; constructor(scriptSync: ScriptSync); /** * Start watching a directory for file changes. * On 'change' events, auto-pushes the changed file to ServiceNow. * Returns an object with a stop() function to close the watcher. */ start(options: WatchOptions): { stop: () => void; }; /** * Stop the file watcher. */ stop(): void; }