UNPKG

@renegade-fi/react

Version:
9 lines 851 B
import type { Evaluate } from "@renegade-fi/core"; import type { GetPingErrorType } from "@renegade-fi/core/actions"; import { type GetPingData, type GetPingOptions, type GetPingQueryFnData, type GetPingQueryKey } from "@renegade-fi/core/query"; import type { ConfigParameter, QueryParameter } from "../types/properties.js"; import { type UseQueryReturnType } from "../utils/query.js"; export type UsePingParameters<selectData = GetPingData> = Evaluate<GetPingOptions & ConfigParameter & QueryParameter<GetPingQueryFnData, GetPingErrorType, selectData, GetPingQueryKey>>; export type UsePingReturnType<selectData = GetPingData> = UseQueryReturnType<selectData, GetPingErrorType>; export declare function usePing<selectData = GetPingData>(parameters?: UsePingParameters<selectData>): UsePingReturnType<selectData>; //# sourceMappingURL=usePing.d.ts.map