export default function (cwd: string, patterns?: string[]): Promise;