import { StoreDefinition, PiniaCustomStateProperties } from 'pinia'; export const useFavoritesStore: StoreDefinition<"FavoritesStore", { favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; }, { siteFavorites: (state: { favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; } & PiniaCustomStateProperties<{ favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; }>) => any[]; fileFavorites: (state: { favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; } & PiniaCustomStateProperties<{ favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; }>) => any[]; folderFavorites: (state: { favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; } & PiniaCustomStateProperties<{ favorites: any[]; loaded: boolean; loading: boolean; loadError: boolean; repairableGuid: any; }>) => any[]; }, { /** * Load all favorites once, with concurrent call deduplication. * Returns the cached favorites if already loaded, unless force is true. * @param {boolean} force - Force a fresh load from the API * @returns {Promise} The favorites array */ loadFavorites(force?: boolean): Promise; /** * Remove favorites whose target node no longer resolves (e.g. deleted), * which otherwise make the all-or-nothing list endpoint return 400. * * The endpoint stops at the first bad favorite, so orphans are discovered * one at a time: delete the known one, reload, and repeat while a new * repairable guid surfaces. Bounded by MAX_REPAIR_ITERATIONS. * * @returns {Promise} The number of orphan favorites removed */ repairOrphanFavorites(): Promise; /** * Add a favorite entry to the local cache after a successful API create. * @param {Object} entry - The favorite entry returned by the API */ addFavoriteToCache(entry: any): void; /** * Remove a favorite from the local cache after a successful API delete. * @param {string} targetGuid - The GUID of the target node to remove */ removeFavoriteFromCache(targetGuid: string): void; /** * Reset the store to its initial state. */ reset(): void; }>; //# sourceMappingURL=favorites.d.ts.map