Wholesaling Bank Owned Property

How late in the foreclosure process can you make an offer on a property to the owner?