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
100 lines (97 loc) • 2.55 kB
text/typescript
/**
* Get Sao Tome And Principe country data
* @returns Sao Tome And Principe 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 Sao Tome And Principe states/tribes data
* @returns Array of state/tribe data for Sao Tome And Principe
*/
declare function getStates(): Promise<({
capitalCity: string;
subdivisions: any[];
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 Sao Tome And Principe country with states/tribes data
* @returns Sao Tome And Principe country object with states property
*/
declare function getCountryAndStates(): Promise<{
states: ({
capitalCity: string;
subdivisions: any[];
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 st_getCountry: typeof getCountry;
declare const st_getCountryAndStates: typeof getCountryAndStates;
declare const st_getStates: typeof getStates;
declare namespace st {
export { st_getCountry as getCountry, st_getCountryAndStates as getCountryAndStates, st_getStates as getStates };
}
export { getStates as a, getCountryAndStates as b, getCountry as g, st as s };