UNPKG

@xynehq/jaf

Version:

Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools

34 lines 908 B
/** * Test Database Setup Utilities */ import Redis from 'ioredis'; import { Pool } from 'pg'; export interface TestDatabaseClients { redis?: Redis; postgres?: Pool; } /** * Create Redis client for testing */ export declare const createTestRedisClient: () => Redis | undefined; /** * Create PostgreSQL client for testing */ export declare const createTestPostgresClient: () => Pool | undefined; /** * Setup test database clients */ export declare const setupTestDatabases: () => Promise<TestDatabaseClients>; /** * Cleanup test database clients */ export declare const cleanupTestDatabases: (clients: TestDatabaseClients) => Promise<void>; /** * Check if Redis is available */ export declare const isRedisAvailable: () => Promise<boolean>; /** * Check if PostgreSQL is available */ export declare const isPostgresAvailable: () => Promise<boolean>; //# sourceMappingURL=db-setup.d.ts.map