/** * PostgreSQL-backed state provider for HTTP/SSE server mode * Stores user state in the configdb database, keyed by user email */ import { StateProvider, StateData } from '../services/state.service.js'; /** * PostgreSQL state provider for multi-user server deployments * Each user's state is stored in the mcp_user_state table, keyed by email */ export declare class PostgresStateProvider implements StateProvider { /** * Get the default project UUID for a user */ getDefaultProjectUuid(userIdentifier?: string): Promise; /** * Set the default project UUID for a user * Uses upsert (INSERT ... ON CONFLICT) to create or update */ setDefaultProjectUuid(projectUuid: string, userIdentifier?: string): Promise; /** * Clear the default project UUID for a user */ clearDefaultProjectUuid(userIdentifier?: string): Promise; /** * Get the base URL * Note: In HTTP/SSE mode, base URL is fixed per deployment (from env var) * This method always returns undefined - base URL switching is not supported */ getBaseUrl(_userIdentifier?: string): Promise; /** * Set the base URL * Note: Not supported in HTTP/SSE mode - base URL is fixed per deployment */ setBaseUrl(_baseUrl: string, _userIdentifier?: string): Promise; /** * Clear the base URL * Note: Not supported in HTTP/SSE mode */ clearBaseUrl(_userIdentifier?: string): Promise; /** * Clear all state for a user */ clearAll(userIdentifier?: string): Promise; /** * Get all state data for a user */ getAll(userIdentifier?: string): Promise; } /** * Get the PostgreSQL state provider singleton */ export declare function getPostgresStateProvider(): PostgresStateProvider;