import type { SiteRecord } from "./site-directory.js"; export type RankedSite = { site: SiteRecord; rank: number; loose: boolean; }; /** * Ranks Sites by title the way the menu ranks chat titles. `known` are the * Sites the app already holds (instant), most recently active first; `found` * are the server's matches for this query, which always count even when the * title alone would not match locally. As with recently opened chats, the * Sites someone was active in lately get a small lift within a match tier, * and recent activity breaks ties. */ export declare function rankSites(known: readonly SiteRecord[], found: readonly SiteRecord[], query: string): RankedSite[]; /** Sites for the empty menu: the most recently active ones, without the one on screen. */ export declare function recentSites(known: readonly SiteRecord[], currentSiteId: string | null, limit: number): SiteRecord[];