import type { AgentSpan, AgentTrace, TraceListWindow, TraceStore } from '@kuralle-agents/core'; import type { QueryResult } from 'pg'; type PostgresClient = { query: (text: string, params?: unknown[]) => Promise; }; export interface PostgresTraceStoreOptions { client: PostgresClient; tableName?: string; autoMigrate?: boolean; retentionMs?: number; } export declare class PostgresTraceStore implements TraceStore { private readonly options; private readonly table; private readonly ready; constructor(options: PostgresTraceStoreOptions); write(span: AgentSpan): Promise; putSpan(span: AgentSpan): Promise; getTrace(traceId: string): Promise; listTraces(sessionId: string, window?: TraceListWindow): Promise; cleanup(maxAgeMs: number): Promise; private init; } export {};