import { TransactionResponse } from "@ethersproject/providers"; import { Order } from "@gelatonetwork/limit-orders-lib"; import { TransactionType } from "./actions"; import { TransactionDetails } from "./reducer"; export declare function useTransactionAdder(): (response: TransactionResponse, customData?: { summary?: string; order?: Order; type: TransactionType; approval?: { tokenAddress: string; spender: string; }; }) => void; export declare function useAllTransactions(): { [txHash: string]: TransactionDetails; }; export declare function useIsTransactionPending(transactionHash?: string): boolean; /** * Returns whether a transaction happened in the last day (86400 seconds * 1000 milliseconds / second) * @param tx to check for recency */ export declare function isTransactionRecent(tx: TransactionDetails): boolean; export declare function useHasPendingApproval(tokenAddress: string | undefined, spender: string | undefined): boolean;