import http from 'http';
import { ServerOptions } from 'http';
/**
 * Enhanced server options for Smithery tool scanning
 */
export interface EnhancedServerOptions extends ServerOptions {
    retryCount?: number;
    concurrency?: number;
    asyncScanning?: boolean;
    toolScanTimeout?: number;
    timeout?: number;
    headersTimeout?: number;
}
/**
 * Start monitoring connections to detect inactivity
 *
 * @param isToolScanMode Whether the server is running in tool scan mode
 */
export declare function startConnectionCheck(isToolScanMode: boolean): void;
/**
 * Set up connection tracking for HTTP server
 *
 * @param httpServer HTTP server instance
 * @returns The HTTP server with connection tracking
 */
export declare function setupConnectionTracking(httpServer: http.Server): http.Server;
/**
 * Get HTTP server options based on tool scan mode
 *
 * @param isToolScanMode Whether the server is running in tool scan mode
 * @param toolScanTimeout Timeout for tool scanning in milliseconds
 * @returns Server options object
 */
export declare function getServerOptions(isToolScanMode: boolean, toolScanTimeout: number): EnhancedServerOptions;
//# sourceMappingURL=connection.d.ts.map