/******************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { SearchEntry } from '../../extension-registry-types'; import { ExtensionCategory } from '../../extension-registry-types'; import { HomeCuratedSection } from '../../page-settings'; /** Number of extensions fetched for each curated row. */ export declare const CURATED_SIZE = 7; /** Curated rows shown when the consumer does not configure `home.curatedSections`. */ export declare const DEFAULT_CURATED_SECTIONS: HomeCuratedSection[]; export interface CuratedRow extends HomeCuratedSection { extensions: SearchEntry[]; loading: boolean; } /** The browsable home category list: the registry's categories minus a few noisy ones. */ export declare function useHomeCategories(): ExtensionCategory[]; /** * Loads the curated extension rows, each fetched with its configured ordering. * Rows start in a loading state and fill in as requests resolve; failed rows end * up empty and are hidden by the consumer. */ export declare function useCuratedRows(curatedSections: HomeCuratedSection[]): CuratedRow[]; //# sourceMappingURL=use-home-data.d.ts.map