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
136 lines (133 loc) • 3.32 kB
TypeScript
/**
* Get Djibouti country data
* @returns Djibouti 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 Djibouti states/tribes data
* @returns Array of state/tribe data for Djibouti
*/
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;
} | {
capitalCity: string;
subdivisions: string[];
geoPoliticalZone: string;
location: string;
name: string;
stateCode: string;
tribes: string[];
type: string;
})[]>;
/**
* Get Djibouti country with states/tribes data
* @returns Djibouti 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;
} | {
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 dj_getCountry: typeof getCountry;
declare const dj_getCountryAndStates: typeof getCountryAndStates;
declare const dj_getStates: typeof getStates;
declare namespace dj {
export { dj_getCountry as getCountry, dj_getCountryAndStates as getCountryAndStates, dj_getStates as getStates };
}
export { getStates as a, getCountryAndStates as b, dj as d, getCountry as g };