What type of government did India have before imperialism?

the government that happenned before imperialism! duuuh!