import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { Registry } from "../registry/index.js"; import type { HarnessClient } from "../client/harness-client.js"; import type { SearchManager } from "../search/index.js"; import type { SearchResult } from "../search/types.js"; /** * Tier-1 types always included in semantic routing even when embeddings miss them. * Prevents confident-but-wrong routing from silently skipping core CI/CD entities. */ export declare const SEMANTIC_ROUTING_SAFETY_FLOOR: readonly ["pipeline", "service", "environment", "connector"]; /** * Extract unique resource types from semantic results that meet the routing threshold. * Uses both: * - `resources` corpus hits: live Harness data already indexed for this account * - `mcp_resources` corpus hits: resource_definition and entity_schema entries whose * resource_type field maps directly to a listable API type (e.g. resource-def:connector * → "connector"). These are the primary routing signal since mcp_resources is always * indexed at startup whereas resources may be sparse. */ export declare function extractRoutingTypes(semanticResults: SearchResult[], allTargetTypes: string[]): string[] | null; /** Union predicted types with tier-1 safety floor types present in the candidate set. */ export declare function applyRoutingSafetyFloor(predicted: string[], candidateTypes: string[]): string[]; export declare function registerSearchTool(server: McpServer, registry: Registry, client: HarnessClient, searchManager?: SearchManager): void; //# sourceMappingURL=harness-search.d.ts.map