export default function (topRoot: string, extension?: string): Promise;