/** * Geographic region utilities for filtering products by world regions. * * Regions follow the UN geoscheme (M49) standard: * - af: Africa * - an: Antarctica * - as: Asia * - eu: Europe * - na: North America * - oc: Oceania * - sa: South America * - me: Middle East (custom, subset of Asia/Africa) */ /** * Geographic region codes */ export type GeographicRegionCode = "af" | "an" | "as" | "eu" | "na" | "oc" | "sa" | "me"; /** * Geographic region metadata */ export interface GeographicRegion { code: GeographicRegionCode; name: string; } /** * All available geographic regions */ export declare const GEOGRAPHIC_REGIONS: GeographicRegion[]; /** * Get the geographic region for a country code. * * @param countryCode - ISO 3166-1 alpha-2 country code (e.g., "RO", "EG") * @returns Geographic region code or null if not found * * @example * getGeographicRegion("RO") // "eu" * getGeographicRegion("EG") // "af" * getGeographicRegion("AE") // "me" */ export declare function getGeographicRegion(countryCode: string): GeographicRegionCode | null; /** * Get all country codes for a geographic region. * * @param region - Geographic region code (e.g., "eu", "af") * @returns Array of ISO 3166-1 alpha-2 country codes * * @example * getCountriesByRegion("eu") // ["AL", "AD", "AT", ...] * getCountriesByRegion("me") // ["BH", "IR", "IQ", ...] */ export declare function getCountriesByRegion(region: GeographicRegionCode): string[]; /** * Check if a string is a valid geographic region code. * * @param code - String to check * @returns True if the code is a valid region code */ export declare function isValidRegionCode(code: string): code is GeographicRegionCode; /** * Get region metadata by code. * * @param code - Geographic region code * @returns Region metadata or null if not found */ export declare function getRegionByCode(code: string): GeographicRegion | null; //# sourceMappingURL=geographic-regions.d.ts.map