/** * Returns true if the error if because a file is not found. On Windows, some * operations like fs.watch() throw an EPERM error rather than ENOENT. * * @param {unknown} error * @returns {error is Error & { code: 'ENOENT' | 'EPERM' }} */ declare function isFileNotThereError(error: unknown): error is Error & { code: "ENOENT" | "EPERM"; }; declare class ENOENT extends Error { /** @param {string} path */ constructor(path: string); code: string; path: string; } export { ENOENT, isFileNotThereError };