import type { ServerDefinition } from '../config.js';
import type { Runtime } from '../runtime.js';
import type { DaemonResponse } from './protocol.js';
export interface ServerActivity {
    connected: boolean;
    lastUsedAt?: number;
}
export declare function ensureManaged(server: string, managedServers: Map<string, ServerDefinition>): void;
export declare function markActivity(server: string, activity: Map<string, ServerActivity>): void;
export declare function evictIdleServers(runtime: Runtime, managedServers: Map<string, ServerDefinition>, activity: Map<string, ServerActivity>): Promise<void>;
export declare function buildErrorResponse(id: string, code: string, error?: unknown): DaemonResponse;
//# sourceMappingURL=request-utils.d.ts.map