text: /**
   * Copyright (c) 2014-present, Facebook, Inc. 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.
   *
   * @flow
   */
  
  declare module "resolve" {
    declare function isCore(moduleName: string): boolean;
    declare function sync(path: string, opts: Object): string;
  }
  
  declare module "resolve/lib/node-modules-paths" {
    declare type NodeModulesPathsOptions = {
      moduleDirectory: Array<string>,
    };
  
    declare module.exports: (
      path: string,
      options: NodeModulesPathsOptions,
    ) => Array<string>;
  }
  