/** * Test Server Utility * Provides standardized test server management for all SuperDangerous applications */ export interface TestServerConfig { /** Path to the application entry point */ entryPoint: string; /** Port to run the server on */ port: number; /** API base URL */ apiBase?: string; /** Environment variables */ env?: Record; /** Timeout for server startup (ms) */ startupTimeout?: number; /** Health check endpoint */ healthEndpoint?: string; /** Whether to suppress server output */ silent?: boolean; } export declare class TestServer { private process; private config; private startPromise; port: number; constructor(config: TestServerConfig); /** * Clean up any existing processes on the port */ private cleanupPort; /** * Wait for the server to be ready */ private waitForServer; /** * Start the test server */ start(): Promise; private _start; /** * Stop the test server */ stop(): Promise; /** * Get the API base URL */ getApiBase(): string; /** * Make a request to the test server */ request(endpoint: string, options?: any): Promise; } /** * Create a test server instance */ export declare function createTestServer(config: TestServerConfig): TestServer; /** * Setup function for Jest beforeAll */ export declare function setupTestServer(config: TestServerConfig): Promise; /** * Teardown function for Jest afterAll */ export declare function teardownTestServer(): Promise; /** * Get the global test server instance */ export declare function getTestServer(): TestServer | null; //# sourceMappingURL=TestServer.d.ts.map