import type { Store } from "@lynq/lynq"; export interface TxRecord { hash: string; chainId: string; to: string; value: string; token: string; operation: string; timestamp: string; status: "sent" | "confirmed" | "failed"; } export interface TxLog { record(tx: TxRecord): Promise; list(): Promise; recent(n: number): Promise; byChain(chainId: string): Promise; byOperation(operation: string): Promise; /** Check if same to/value/chainId tx was sent within 10 seconds */ isDuplicate(params: { to: string; value: string; chainId: string; }): Promise; /** Update tx status by hash */ updateStatus(hash: string, status: TxRecord["status"]): Promise; /** Return txs with status "sent" */ pending(): Promise; } export declare function createTxLog(store: Store): TxLog; //# sourceMappingURL=tx-log.d.ts.map