export type SearchableTool = { /** Prefixed name as the combiner serves it, e.g. "github_search_code". */ name: string; description?: string; }; export type RankedMatch = { tool: SearchableTool; score: number; }; /** Rank tools against a query. Coverage floor: ≥60% of query tokens must match * somewhere (100% for ≤2-token queries) — the adapter's anti-noise rule. */ export declare function rankTools(tools: SearchableTool[], query: string, limit: number, offset?: number): RankedMatch[]; /** Simple substring fallback for regex-mode search (pattern pre-validated by caller). */ export declare function regexMatches(tools: SearchableTool[], pattern: RegExp, limit: number, offset?: number): RankedMatch[]; /** Compile a user regex with a conservative safety net: anchored parsing + a size * ceiling. Returns undefined (with reason) for anything that smells exponential. */ export declare function compileSafeRegex(pattern: string): { re?: RegExp; error?: string; }; //# sourceMappingURL=ranking.d.ts.map