UNPKG

@renegade-fi/react

Version:
13 lines 1.06 kB
import type { Evaluate, WithdrawRequestErrorType } from "@renegade-fi/core"; import { type WithdrawRequestData, type WithdrawRequestMutate, type WithdrawRequestMutateAsync, type WithdrawRequestVariables } from "@renegade-fi/core/query"; import type { ConfigParameter } from "../types/properties.js"; import type { UseMutationParameters, UseMutationReturnType } from "../utils/query.js"; export type UseWithdrawParameters<context = unknown> = Evaluate<ConfigParameter & { mutation?: UseMutationParameters<WithdrawRequestData, WithdrawRequestErrorType, WithdrawRequestVariables, context> | undefined; }>; export type UseWithdrawReturnType<context = unknown> = Evaluate<UseMutationReturnType<WithdrawRequestData, WithdrawRequestErrorType, WithdrawRequestVariables, context> & { withdraw: WithdrawRequestMutate<context>; withdrawAsync: WithdrawRequestMutateAsync<context>; }>; export declare function useWithdraw<context = unknown>(parameters?: UseWithdrawParameters<context>): UseWithdrawReturnType<context>; //# sourceMappingURL=useWithdraw.d.ts.map