import type { AgentSession, AgentSessionStatus, AgentSessionStore, ArtifactStore, OutputArtifact } from "./types.js"; export interface PostgresPlatformStoreOptions { tablePrefix?: string; } export interface PostgresPlatformQueryResult { rows: Record[]; rowCount?: number | null; } export interface PostgresPlatformClient { query(sql: string, params?: unknown[]): Promise; end?(): Promise; } export declare class PostgresAgentSessionStore implements AgentSessionStore { private readonly client; private readonly sessionsTable; private constructor(); static create(connectionString: string, options?: PostgresPlatformStoreOptions): Promise; static fromClient(client: PostgresPlatformClient, options?: PostgresPlatformStoreOptions): PostgresAgentSessionStore; ensureSchema(): Promise; create(session: AgentSession): Promise; save(session: AgentSession): Promise; get(sessionId: string): Promise; list(filter?: { status?: AgentSessionStatus; }): Promise; close(): Promise; } export declare class PostgresArtifactStore implements ArtifactStore { private readonly client; private readonly artifactsTable; private constructor(); static create(connectionString: string, options?: PostgresPlatformStoreOptions): Promise; static fromClient(client: PostgresPlatformClient, options?: PostgresPlatformStoreOptions): PostgresArtifactStore; ensureSchema(): Promise; put(artifact: OutputArtifact): Promise; list(sessionId: string): Promise; close(): Promise; } export interface PostgresPlatformStores { sessionStore: PostgresAgentSessionStore; artifactStore: PostgresArtifactStore; close(): Promise; } export declare function createPostgresPlatformStores(connectionString: string, options?: PostgresPlatformStoreOptions): Promise; export declare function createPostgresPlatformStoresFromClient(client: PostgresPlatformClient, options?: PostgresPlatformStoreOptions): Promise; //# sourceMappingURL=postgres-store.d.ts.map