import type { ModelSearchItem } from "./model-search.ts";
export interface RankModelSearchOptions<T> {
    /** When true, favorite matches partition above non-favorites (relevance preserved within each partition). */
    favoritesFirst: boolean;
    /** Callers with a null favorite-ids sentinel return true for all items, making the partition a no-op. */
    isFavorite: (item: T) => boolean;
}
/**
 * Filter and rank items by search relevance, optionally partitioning favorites first.
 * Empty trimmed query returns the input unchanged (caller base order is authoritative).
 */
export declare function rankModelSearchItems<T>(items: T[], query: string, getModel: (item: T) => ModelSearchItem, options: RankModelSearchOptions<T>): T[];
//# sourceMappingURL=model-search-rank.d.ts.map