import { Quote, SwapBasicData, SwapQuote } from '../lib/apiClients/layerSwapApiClient'; import { SwapFormValues } from '../components/Pages/Swap/Form/SwapFormValues'; export type QuoteTokenPrices = Pick; type UseQuoteData = { minAllowedAmount?: number; maxAllowedAmount?: number; minAllowedAmountInUsd?: number; maxAllowedAmountInUsd?: number; quote?: Quote; quoteTokenPrices?: QuoteTokenPrices; quoteError?: QuoteError; limitsError?: QuoteError; isQuoteLoading: boolean; isDebouncing: boolean; mutateFee: () => void; mutateLimits: () => void; limitsValidating: boolean; }; export type QuoteError = { code: string; message: string; response?: { data?: { error?: { code?: string; message?: string; metadata?: { AmountLimit: number; }; }; }; }; metadata?: { StatusCode?: string; [key: string]: any; }; }; type Props = { from: string | undefined; to: string | undefined; fromCurrency: string | undefined; toCurrency: string | undefined; amount: string | number | undefined; refuel: boolean | undefined; depositMethod: "wallet" | "deposit_address" | undefined; destinationAddress?: string; }; type Options = { skipLimits?: boolean; refreshInterval?: number; }; export declare function useQuoteData(formValues: Props | undefined, options?: Options): UseQuoteData; export declare function validDestinationAddress(address: string | undefined, network: { name: string; } | undefined | null): string | undefined; export declare function transformFormValuesToQuoteArgs(values: SwapFormValues): Props | undefined; export declare function transformSwapDataToQuoteArgs(swapData: SwapBasicData | undefined, refuel: boolean): Props | undefined; export type QuoteUrlArgs = { sourceNetwork: string; sourceToken: string; destinationNetwork: string; destinationToken: string; amount: string | number; refuel: boolean; useDepositAddress: boolean; useFrontendSwap: true; slippage?: number; useGasless?: boolean; destinationAddress?: string; sourceAddress?: string; }; export declare function buildQuoteUrl(args: QuoteUrlArgs): string; export declare const getLimits: (swapValues: LimitsQueryOptions & { useFrontendSwap: true; }) => Promise<{ minAllowedAmount: number | undefined; maxAllowedAmount: number | undefined; }>; interface LimitsQueryOptions { sourceNetwork?: string; sourceToken?: string; destinationNetwork?: string; destinationToken?: string; useDepositAddress?: boolean; useFrontendSwap?: true; refuel?: boolean; useGasless?: boolean; destinationAddress?: string; } type BuildLimitsUrlOptions = LimitsQueryOptions & { useFrontendSwap: true; }; export declare function buildLimitsUrl({ sourceNetwork, sourceToken, destinationNetwork, destinationToken, useDepositAddress, refuel, useGasless, destinationAddress }: BuildLimitsUrlOptions): string; type LoadingState = { key: string | null; setKey: (value: string | null) => void; isLoading: boolean; setLoading: (loading: boolean) => void; }; export declare const useLoadingStore: import("zustand").UseBoundStore>; export {}; //# sourceMappingURL=useFee.d.ts.map