export default function (downloadPath: string, rootDirectory?: string | undefined): Promise<(p: string) => any>;