import type { OptimalRate } from 'paraswap-core'; import type { WithGasPrice, WithMaxFee } from './gas'; import type { ConstructFetchInput, Address } from './types'; import { PriceString } from './token'; export interface TransactionParams { to: string; from: string; value: string; data: string; gasPrice: string; gas?: string; chainId: number; } interface BuildTxInput { srcToken: Address; destToken: Address; srcAmount: PriceString; destAmount: PriceString; priceRoute: OptimalRate; userAddress: Address; partner?: string; partnerAddress?: string; partnerFeeBps?: number; receiver?: Address; srcDecimals?: number; destDecimals?: number; permit?: string; deadline?: string; } declare type BuildOptionsBase = { ignoreChecks?: boolean; ignoreGasEstimate?: boolean; onlyParams?: boolean; simple?: boolean; }; declare type BuildOptionsWithGasPrice = BuildOptionsBase & Partial; declare type BuildOptionsWitWithMaxFee = BuildOptionsBase & Partial; export declare type BuildOptions = BuildOptionsWithGasPrice | BuildOptionsWitWithMaxFee; declare type BuildTx = (params: BuildTxInput, options?: BuildOptions, signal?: AbortSignal) => Promise; export declare type BuildTxFunctions = { buildTx: BuildTx; }; export declare const constructBuildTx: ({ apiURL, network, fetcher, }: ConstructFetchInput) => BuildTxFunctions; export {}; //# sourceMappingURL=transaction.d.ts.map