import { ethereumApi } from '@yozh-io/1inch-widget-api-client'; import { OneInchApproveTxParams } from './types'; export interface FetchQuoteParams { quoteInfo: ethereumApi.ExchangeControllerGetQuoteRequest; chainId: number | undefined; } export interface FetchSwapParams { swapInfo: ethereumApi.ExchangeControllerGetSwapRequest; chainId: number | undefined; } /** * @async * @function * @description Asynchronously retrieves a 1inch exchange quote for a specified trade. * @param {FetchQuoteParams} params - The parameters for the quote trade to be executed. * @returns {Promise} - The response containing the quote data. * @throws {Error} - Throws an error if the API call fails. */ export declare const fetchOneInchQuote: (params: FetchQuoteParams) => Promise; /** * @async * @function * @description Asynchronously retrieves a 1inch exchange swap for a specified trade. * @param {FetchSwapParams} params - The parameters for the swap trade to be executed. * @returns {Promise} - The response containing the swap data. * @throws {Error} - Throws an error if the API call fails. */ export declare const fetchOneInchSwap: (params: FetchSwapParams) => Promise; /** * @async * @function * @description Asynchronously retrieves the spender address for the 1inch exchange. * @param {number} chainId - ChainId for which to retrieve the spender address. * @returns {Promise} - The spender address for the 1inch exchange on the specified chainId. * @throws {Error} - Throws an error if the API call fails. */ export declare const fetchOneInchSpender: (chainId: number) => Promise; /** * @async * @function * @description Asynchronously retrieves the data needed to execute an approval transaction on the 1inch exchange. * @param {OneInchApproveTxParams} params - The parameters needed to make the approval transaction. * @returns {Promise} - The response containing the data needed to execute the approval transaction. * @throws {Error} - Throws an error if the API call fails. */ export declare const fetchOneInchApproveTx: (params: OneInchApproveTxParams) => Promise;