import type { AppEntry } from "./menuEntries.js"; /** * Tracks the favorite state the user has changed while the menu is open. * * The changes are applied optimistically on top of the article rows and rolled * back if the handler rejects. The overrides are kept for the lifetime of the * menu, since the article list is only loaded the first time it is opened and * would otherwise show a stale state the second time around. */ export declare function useFavorites(onToggleFavorite?: (id: string, favorite: boolean) => void | Promise): { applyOverrides: (entries: AppEntry[]) => AppEntry[]; toggleFavorite: ((id: string, favorite: boolean) => Promise) | undefined; };