import type { McpExtensionState } from "./state.ts"; import type { ToolMetadata } from "./types.ts"; export interface RankedToolMatch { server: string; tool: ToolMetadata; score: number; } export interface SearchableTool { name: string; originalName: string; description: string; } export declare function normalizeSearchText(value: string): string; export declare function tokenize(value: string): string[]; export declare function scoreToolMatch(tool: SearchableTool, server: string, query: string): number | null; export declare function rankToolMatches(state: McpExtensionState, query: string, server?: string): RankedToolMatch[]; export declare function paginate(items: T[], offset: number, limit: number): { items: T[]; total: number; hasMore: boolean; nextOffset: number | null; }; export declare function rankSuggestions(state: McpExtensionState, name: string, limit: number): string[];