declare function mergePath(basePaths: (string | null)[], path: string): any;