import { JsonObjectStore } from '../../json/JsonObjectStore'; import { TTxWriterJson } from '../TxWriter'; import { GasWatcherTx, IGasWatcherCondition } from './GasWatcherTx'; export interface IGasWatcherStore { savePrice(enty: { date: Date; price: bigint; }): Promise; loadPrices(from: Date, toDate: any): Promise<{ date: Date; price: bigint; }[]>; saveTxs(pending: ReturnType[]): Promise; loadTxs(): Promise[]>; } type GasWatcherTxJson = { condition: IGasWatcherCondition; writer: TTxWriterJson; }; export declare class GasWatcherStore implements IGasWatcherStore { name: string; protected jsonStore: JsonObjectStore; constructor(name?: string); savePrice(enty: { date: Date; price: bigint; }): Promise; loadPrices(from: Date, toDate: any): Promise<{ date: Date; price: bigint; }[]>; saveTxs(txs: GasWatcherTxJson[]): Promise; loadTxs(): Promise; } export {};