import type { FiatTransactionHistory, HistoryTransaction, SendTransactionHistory, SwapTransactionHistory, TxTypeToTransactionMap } from "../../core/types/history"; import { HistoryTxType } from "../../core/types/history"; interface HistoryStoreState { transactions: HistoryTransaction[]; } export type ReplaceTransactionStatusParams = ({ txType: HistoryTxType.SWAP; } & Pick) | ({ txType: HistoryTxType.SEND; } & Pick) | ({ txType: HistoryTxType.BUY; } & Pick); interface HistoryStore extends HistoryStoreState { persistTransaction: (tx: HistoryTransaction) => void; replaceTransactionStatus: ({}: ReplaceTransactionStatusParams) => void; removeTransaction: ({}: { txType: HistoryTxType; transactionId: string; }) => void; replaceTransactionAtNonce: ({}: { nonce: number; fromAddress: string; newTx: HistoryTransaction; }) => void; findTransaction: ({}: { txType: T; transactionId: string | undefined; }) => TxTypeToTransactionMap[T] | undefined; } export declare const useHistoryStore: import("zustand").UseBoundStore, "persist"> & { persist: { setOptions: (options: Partial>) => void; clearStorage: () => void; rehydrate: () => void | Promise; hasHydrated: () => boolean; onHydrate: (fn: (state: HistoryStore) => void) => () => void; onFinishHydration: (fn: (state: HistoryStore) => void) => () => void; getOptions: () => Partial>; }; }>; export {};