/****************************************************************************** * 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 *****************************************************************************/ export type PublisherRole = 'admin' | 'privileged' | 'none'; export declare const publisherAdminKeys: { detail: (provider: string, login: string) => readonly ["admin", "publisher", string, string]; list: (search: string, role: string) => readonly ["admin", "publishers", { readonly search: string; readonly role: string; }]; }; export declare const publisherMutationKey: readonly ["admin", "publisher-mutation"]; export declare const usePublisherInfo: (login: string, provider?: string, enabled?: boolean) => import("@tanstack/react-query").UseQueryResult>, Error>; /** * Loads the searchable, role-filterable publisher list one page at a time. * `keepPreviousData` keeps the current rows on screen while a changed search or * role filter loads, matching the rest of the admin dashboard. */ export declare const useInfinitePublishers: (search: string, role: string) => import("@tanstack/react-query").UseInfiniteQueryResult, unknown>, Error>; /** * Updates a publisher's role and refreshes the publisher list on success so the * new role is reflected. Throws on an error result so the caller's catch path runs. */ export declare const useUpdatePublisherRole: () => import("@tanstack/react-query").UseMutationResult, Error, { provider: string; login: string; role: PublisherRole; }, unknown>; /** * Revokes all contributions of a publisher. Throws on an error result so the * caller's catch path runs. */ export declare const useRevokePublisherContributions: () => import("@tanstack/react-query").UseMutationResult, Error, { provider: string; login: string; }, unknown>; /** * Revokes the access tokens of a publisher. Throws on an error result so the * caller's catch path runs. */ export declare const useRevokeAccessTokens: () => import("@tanstack/react-query").UseMutationResult, Error, { provider: string; login: string; }, unknown>; //# sourceMappingURL=use-publisher-admin.d.ts.map