import { Currency, CurrencyAmount, NativeCurrency, Price, Token, TradeType } from "@uniswap/sdk-core"; import { Trade } from "@uniswap/v2-sdk"; import { Field, Rate } from "./actions"; import { AppState } from ".."; export declare function applyExchangeRateTo(inputValue: string, exchangeRate: string, inputCurrency: Currency, outputCurrency: Currency, isInverted: boolean): CurrencyAmount | undefined; export declare function useOrderState(): AppState["gorder"]; export declare function useOrderActionHandlers(): { onCurrencySelection: (field: Field, currency: Currency) => void; onSwitchTokens: () => void; onUserInput: (field: Field, typedValue: string) => void; onChangeRecipient: (recipient: string | null) => void; onChangeRateType: (rateType: Rate) => void; }; export declare function tryParseAmount(value?: string, currency?: T): CurrencyAmount | undefined; export interface DerivedOrderInfo { currencies: { input: Currency | undefined; output: Currency | undefined; }; currencyBalances: { input: CurrencyAmount | undefined; output: CurrencyAmount | undefined; }; inputError?: string; trade: Trade | undefined; parsedAmounts: { input: CurrencyAmount | undefined; output: CurrencyAmount | undefined; }; formattedAmounts: { input: string; output: string; price: string; }; rawAmounts: { input: string | undefined; output: string | undefined; }; price: Price | undefined; } export declare function useDerivedOrderInfo(): DerivedOrderInfo;