import type { Topology } from "topojson-specification"; /** * Dynamically imports a country's TopoJSON file by country code * @param countryCode - Three-letter country code (e.g., 'usa', 'can', 'gbr') * @returns Promise resolving to the TopoJSON topology * @example * const usaTopo = await getCountryTopology('usa'); * * // In a React component: * const [topology, setTopology] = React.useState(null); * React.useEffect(() => { * getCountryTopology('usa').then(setTopology); * }, []); */ export declare function getCountryTopology(countryCode: string): Promise; /** * Returns the path to a country's TopoJSON file for use with bundler's require/import * This allows you to use it with dynamic requires in your bundler * @param countryCode - Three-letter country code (e.g., 'usa', 'can', 'gbr') * @returns The module path that can be used with your bundler's require * @example * // In your React component with a bundler that supports dynamic requires: * const topology = require(getCountryTopologyPath('usa')); * * // Or with Webpack's require.context: * const path = getCountryTopologyPath(props.country_code); */ export declare function getCountryTopologyPath(countryCode: string): string; export type { Topology } from "topojson-specification"; //# sourceMappingURL=countries.d.ts.map