/** * SQLite storage for credentials, market metadata, and order history. * * Uses better-sqlite3 as an optional peer dependency (same as cache module). */ import type { StoredCredentials, MarketMeta, OrderHistoryRow, HistoryParams } from './types.js'; import type { TradingStorage } from './storage.js'; export declare class TradingSqliteBackend implements TradingStorage { private db; constructor(dbPath: string); getCredentials(walletAddress: string): StoredCredentials | null; upsertCredentials(creds: StoredCredentials): void; deleteCredentials(walletAddress: string): void; getAllCredentials(): StoredCredentials[]; getMarketMeta(tokenId: string): MarketMeta | null; upsertMarketMeta(meta: MarketMeta): void; insertOrder(order: Omit): number; updateOrderStatus(id: number, status: string, orderId?: string, errorMsg?: string, responseJson?: string, feeData?: { feeAmountRaw?: string; escrowOrderId?: string; feeEscrowTxHash?: string; }): void; getOrderHistory(wallet: string, params?: HistoryParams): OrderHistoryRow[]; close(): void; } //# sourceMappingURL=sqlite-backend.d.ts.map