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
118 lines (115 loc) • 2.89 kB
TypeScript
/**
* Get Comoros country data
* @returns Comoros 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 Comoros states/tribes data
* @returns Array of state/tribe data for Comoros
*/
declare function getStates(): Promise<({
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
})[]>;
/**
* Get Comoros country with states/tribes data
* @returns Comoros country object with states property
*/
declare function getCountryAndStates(): Promise<{
states: ({
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
} | {
capitalCity: string;
subdivisions: 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 km_getCountry: typeof getCountry;
declare const km_getCountryAndStates: typeof getCountryAndStates;
declare const km_getStates: typeof getStates;
declare namespace km {
export { km_getCountry as getCountry, km_getCountryAndStates as getCountryAndStates, km_getStates as getStates };
}
export { getStates as a, getCountryAndStates as b, getCountry as g, km as k };