export declare function hasDependency(dependency: string | RegExp, dir?: string): Promise;