@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
23 lines • 988 B
TypeScript
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
export type HyperliquidMarginSummary = {
accountValue?: string;
totalNtlPos?: string;
totalRawUsd?: string;
totalMarginUsed?: string;
};
export type HyperLiquidBalanceResponse = {
marginSummary?: HyperliquidMarginSummary;
crossMarginSummary?: HyperliquidMarginSummary;
crossMaintenanceMarginUsed?: string;
withdrawable?: string;
assetPositions?: any[];
time?: number;
} | null;
type QueryType = typeof useQuery<HyperLiquidBalanceResponse, DefaultError, HyperLiquidBalanceResponse, QueryKey>;
type QueryOptions = Parameters<QueryType>['0'];
declare const _default: (address?: string, queryOptions?: Partial<QueryOptions>) => import("@tanstack/react-query").UseQueryResult<HyperLiquidBalanceResponse, Error> & {
balance: bigint | undefined;
queryKey: (string | undefined)[];
};
export default _default;
//# sourceMappingURL=useHyperliquidUsdcBalance.d.ts.map