@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
25 lines • 1.01 kB
TypeScript
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
export type MoonPayGeolocationResponse = {
alpha2: string;
alpha3: string;
country: string;
ipAddress: string;
isAllowed: boolean;
isBuyAllowed: boolean;
isNftAllowed: boolean;
isSellAllowed: boolean;
isBalanceLedgerWithdrawAllowed: boolean;
isFiatBalanceAllowed: boolean;
isMoonPayBalanceAllowed: boolean;
isLowLimitEnabled: boolean;
state: string;
};
type QueryType = typeof useQuery<MoonPayGeolocationResponse, DefaultError, MoonPayGeolocationResponse, QueryKey>;
type QueryOptions = Parameters<QueryType>['0'];
type MoonpayCurrenciesQueryParams = {
apiKey?: string;
ipAddress?: string;
};
declare const _default: (queryParams?: MoonpayCurrenciesQueryParams, queryOptions?: Partial<QueryOptions>) => import("@tanstack/react-query").UseQueryResult<MoonPayGeolocationResponse, Error>;
export default _default;
//# sourceMappingURL=useMoonPayGeolocation.d.ts.map