46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			46 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * This source code is licensed under the MIT license found in the
							 | 
						||
| 
								 | 
							
								 * LICENSE file in the root directory of this source tree.
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								/// <reference types="node" />
							 | 
						||
| 
								 | 
							
								import { EventEmitter } from 'events';
							 | 
						||
| 
								 | 
							
								import anymatch from 'anymatch';
							 | 
						||
| 
								 | 
							
								import { Watcher } from 'fsevents';
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Export `FSEventsWatcher` class.
							 | 
						||
| 
								 | 
							
								 * Watches `dir`.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								declare class FSEventsWatcher extends EventEmitter {
							 | 
						||
| 
								 | 
							
								    readonly root: string;
							 | 
						||
| 
								 | 
							
								    readonly ignored?: anymatch.Matcher;
							 | 
						||
| 
								 | 
							
								    readonly glob: Array<string>;
							 | 
						||
| 
								 | 
							
								    readonly dot: boolean;
							 | 
						||
| 
								 | 
							
								    readonly hasIgnore: boolean;
							 | 
						||
| 
								 | 
							
								    readonly doIgnore: (path: string) => boolean;
							 | 
						||
| 
								 | 
							
								    readonly watcher: Watcher;
							 | 
						||
| 
								 | 
							
								    private _tracked;
							 | 
						||
| 
								 | 
							
								    static isSupported(): boolean;
							 | 
						||
| 
								 | 
							
								    private static normalizeProxy;
							 | 
						||
| 
								 | 
							
								    private static recReaddir;
							 | 
						||
| 
								 | 
							
								    constructor(dir: string, opts: {
							 | 
						||
| 
								 | 
							
								        root: string;
							 | 
						||
| 
								 | 
							
								        ignored?: anymatch.Matcher;
							 | 
						||
| 
								 | 
							
								        glob: string | Array<string>;
							 | 
						||
| 
								 | 
							
								        dot: boolean;
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * End watching.
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    close(callback?: () => void): void;
							 | 
						||
| 
								 | 
							
								    private isFileIncluded;
							 | 
						||
| 
								 | 
							
								    private handleEvent;
							 | 
						||
| 
								 | 
							
								    /**
							 | 
						||
| 
								 | 
							
								     * Emit events.
							 | 
						||
| 
								 | 
							
								     */
							 | 
						||
| 
								 | 
							
								    private _emit;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								export = FSEventsWatcher;
							 | 
						||
| 
								 | 
							
								//# sourceMappingURL=FSEventsWatcher.d.ts.map
							 |