import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface ICountry { /** * The country's numeric ID. */ country_id: number; /** * The two-letter country code according to ISO 3166-1-alpha-2. */ iso_country_code: string; /** * The three-letter country code according to the World Bank. */ world_bank_country_code: string; /** * The country's plain-English name. */ name: string; /** * The country's plain-English name slugified; suitable for interpolation into a url. */ slug: string; /** * The country's latitude. */ lat: number; /** * The country's longitude. */ lon: number; } export interface IFindAllCountryParameters { } export interface IGetCountryParameters { country_id: number[]; } export interface IFindByIsoCodeParameters { limit?: number; offset?: number; page?: number; iso_code: string; } export declare class Country extends ApiRequest { constructor(options: IOptions); /** * Finds all Country. */ findAllCountry(params: IFindAllCountryParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Retrieves a Country by id. */ getCountry(params: IGetCountryParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Get the country info for the given ISO code. */ findByIsoCode(params: IFindByIsoCodeParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }