/******************************************************************************** * 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 { SearchResult } from '../extension-registry-types'; import { ExtensionFilter } from '../extension-registry-service'; /** The filter fields that identify a result set; `offset` is driven by the pages. */ export type SearchQuery = Omit; export declare const searchKeys: { list: (query: SearchQuery) => readonly ["search", SearchQuery]; }; /** * Loads search results one offset-paged page at a time. The pages stay in the * query cache keyed by the filter, so returning to a scrolled search restores * every loaded page (and thus its scroll position) instead of refetching from * the first page. `keepPreviousData` keeps the current results on screen while * a changed filter loads. */ export declare const useInfiniteSearch: (filter: ExtensionFilter) => import("@tanstack/react-query").UseInfiniteQueryResult, Error>; //# sourceMappingURL=use-infinite-search.d.ts.map