import type { StorageBackend } from './storage.js'; import type { TradeRow } from './types.js'; type QueryTable = 'trades' | 'positions'; export declare class CacheQueryBuilder { private _table; private _storage; private _wallet?; private _conditionId?; private _tokenId?; private _side?; private _since?; private _until?; private _limit?; private _offset?; private _orderBy?; private _minSize?; private _minPnl?; constructor(storage: StorageBackend, table: QueryTable); wallet(wallet: string): this; market(conditionId: string): this; token(tokenId: string): this; side(side: 'BUY' | 'SELL'): this; since(timestamp: number): this; until(timestamp: number): this; limit(n: number): this; skip(n: number): this; orderBy(order: 'timestamp_asc' | 'timestamp_desc'): this; minSize(size: number): this; minPnl(pnl: number): this; run(): T[]; private _runTrades; private _runPositions; } export {}; //# sourceMappingURL=query-builder.d.ts.map