import type { MemoryTier, MemoryUnit, LoadResult } from "./types.js"; export declare function extractTagsFromString(text: string): string[]; export declare function scoreRelevance(unit: MemoryUnit, taskTags: string[]): number; /** * Apply token budget to a list of candidate units. * Hydrates selected units via the provided hydrate function. * Returns a LoadResult with selected units + dropped overflow. */ export declare function applyBudget(units: MemoryUnit[], budget: number, hydrateUnit: (unit: MemoryUnit) => MemoryUnit, markLoaded: (key: string) => void, logFn: (msg: string) => void): LoadResult; /** * Rank candidates by relevance to a task string, filter by threshold, * apply budget, and return the LoadResult. */ export declare function rankAndLoad(task: string, tier: MemoryTier, matchThreshold: number, candidates: MemoryUnit[], budget: number, hydrateUnit: (unit: MemoryUnit) => MemoryUnit, markLoaded: (key: string) => void, logFn: (msg: string) => void): LoadResult; //# sourceMappingURL=ranker.d.ts.map