\(\left(\dfrac{\sqrt{x}-1}{x-2\sqrt{x}+1}-\dfrac{2}{\sqrt{x}}\right):\dfrac{2-\sqrt{x}}{x-1}.\\ =\left(\dfrac{\sqrt{x}-1}{\left(\sqrt{x}-1\right)^2}-\dfrac{2}{\sqrt{x}}\right).\dfrac{x-1}{2-\sqrt{x}}.\\ =\left(\dfrac{1}{\sqrt{x}-1}-\dfrac{2}{\sqrt{x}}\right).\dfrac{x-1}{2-\sqrt{x}}.\\ =\dfrac{\sqrt{x}-2\left(\sqrt{x-1}\right)}{\sqrt{x}.\left(\sqrt{x}-1\right)}.\dfrac{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{2-\sqrt{x}}.\)
\(=\dfrac{2-\sqrt{x}}{\sqrt{x}}.\dfrac{\sqrt{x}+1}{2-\sqrt{x}}.\\ =\dfrac{\sqrt{x}+1}{\sqrt{x}}.\)