african-states-and-tribes
Version:
This project provides comprehensive insights into African countries, the origins of various tribes, and their geographic distributions. Built to celebrate and document Africa’s rich multicultural landscape, it allows users to explore the continent’s diver
144 lines (141 loc) • 3.43 kB
TypeScript
/**
* Get Rwanda country data
* @returns Rwanda country object
*/
declare function getCountry(): Promise<{
countryCode: string;
phoneCode: number;
capitalCity: string;
colonialMaster: {
name: string;
countryCode: string;
}[];
flagEmoji: string;
name: string;
currency: string;
currencyCode: string;
currencySymbol: string;
officialLanguage: string;
majorEthnicGroups: string[];
timezones: {
iana: string;
gmtOffset: string;
}[];
}>;
/**
* Get Rwanda states/tribes data
* @returns Array of state/tribe data for Rwanda
*/
declare function getStates(): Promise<({
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
})[]>;
/**
* Get Rwanda country with states/tribes data
* @returns Rwanda country object with states property
*/
declare function getCountryAndStates(): Promise<{
states: ({
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
})[];
countryCode: string;
phoneCode: number;
capitalCity: string;
colonialMaster: {
name: string;
countryCode: string;
}[];
flagEmoji: string;
name: string;
currency: string;
currencyCode: string;
currencySymbol: string;
officialLanguage: string;
majorEthnicGroups: string[];
timezones: {
iana: string;
gmtOffset: string;
}[];
}>;
declare const rw_getCountry: typeof getCountry;
declare const rw_getCountryAndStates: typeof getCountryAndStates;
declare const rw_getStates: typeof getStates;
declare namespace rw {
export { rw_getCountry as getCountry, rw_getCountryAndStates as getCountryAndStates, rw_getStates as getStates };
}
export { getStates as a, getCountryAndStates as b, getCountry as g, rw as r };