import { TransactionResponse } from '@ethersproject/providers';
import { TransactionDetails } from './atom';
declare type TransactionOnlyWithHash = Pick<TransactionResponse, 'hash'>;
export declare function useTransactionAdder(): (response: TransactionOnlyWithHash, customData?: {
    summary?: string;
    approval?: {
        tokenAddress: string;
        spender: string;
    };
    claim?: {
        recipient: string;
    };
}) => void;
export declare function useAllTransactionsClearer(): () => 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;
export declare function useUserHasSubmittedClaim(account?: string): {
    claimSubmitted: boolean;
    claimTxn: TransactionDetails | undefined;
};
export {};
