/** * Bun-native SQLite storage backend. * * Uses bun:sqlite (built into Bun, zero deps). Same schema and behavior as * TradingSqliteBackend but with Bun's SQLite API instead of better-sqlite3. * * Usage: * import { BunSqliteBackend } from 'polynode-sdk'; * const trader = new PolyNodeTrader({ storage: new BunSqliteBackend('./trading.db') }); */ import type { StoredCredentials, MarketMeta, OrderHistoryRow, HistoryParams } from './types.js'; import type { TradingStorage } from './storage.js'; export declare class BunSqliteBackend 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=bun-sqlite-backend.d.ts.map