import { type UseQueryResult } from '@tanstack/react-query'; import type { FunLogger } from '../../utils/funLogger'; /** Fallback when the country → currency lookup is unavailable. */ export declare const DEFAULT_FIAT_CURRENCY = "USD"; export interface SwappedDefaultCurrencyQueryParams { apiKey: string | undefined; /** The user's ISO 3166-1 alpha-2 country (e.g. resolved from their IP). */ countryCode: string | undefined; logger: FunLogger; } /** * Params-shaped resolver shared by web and React Native: maps the user's * country (alpha2) to its Swapped default fiat currency via * `getSwappedSupportedCountries`. Falls back to USD when there's no apiKey, the * country hasn't resolved, or it isn't in Swapped's supported list. Feeds * `fiatCurrencyCode` in the /fops query so cash methods are quoted in the user's * regional currency. * * Identity, country, and the logger are injected by the platform layers. The * `disable-krw-default-currency` compliance gate is the one deliberate context * read — resolved here so no call site can forget it. */ export declare function useSwappedDefaultCurrencyQuery({ apiKey, countryCode, logger, }: SwappedDefaultCurrencyQueryParams): UseQueryResult; //# sourceMappingURL=useSwappedDefaultCurrencyQuery.d.ts.map