import type { StorageBackend } from './storage.js'; import type { TradeRow, SettlementRow, PositionSummary } from './types.js'; export type ExportTable = 'trades' | 'positions' | 'settlements'; export interface ExportFilter { wallet?: string; conditionId?: string; tokenId?: string; side?: 'BUY' | 'SELL'; since?: number; until?: number; limit?: number; orderBy?: 'timestamp_asc' | 'timestamp_desc'; } type AnyRow = TradeRow | PositionSummary | SettlementRow; export declare function exportRows(storage: StorageBackend, table: ExportTable, filter?: ExportFilter): AnyRow[]; export declare function exportJSON(storage: StorageBackend, table: ExportTable, filter?: ExportFilter): string; export declare function exportCSV(storage: StorageBackend, table: ExportTable, filter?: ExportFilter): string; export {}; //# sourceMappingURL=export.d.ts.map