The sequence of biliary events preceding the formation of gallstones in humans.