Bassinet question

How long do newborns typically stay in a bassinet? We don’t have a lot of space in our house and the baby will have to stay in our room for awhile. Just not sure how long we would be able to use a bassinet if we got one.