/****************************************************************************** * 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 { type Customer, type UserData } from '../../../extension-registry-types'; export declare const customerKeys: { all: readonly ["admin", "customers"]; detail: (name: string) => readonly ["admin", "customers", string]; tokens: (name: string) => readonly ["admin", "customers", string, "tokens"]; members: (name: string) => readonly ["admin", "customers", string, "members"]; }; /** * Loads all customers. */ export declare const useCustomers: () => import("@tanstack/react-query").UseQueryResult>, Error>; /** * Loads a single customer by name. */ export declare const useCustomer: (name: string | undefined) => import("@tanstack/react-query").UseQueryResult>, Error>; /** * Creates a customer and refreshes the customer list on success. */ export declare const useCreateCustomer: () => import("@tanstack/react-query").UseMutationResult, Error, Customer, unknown>; /** * Updates a customer and refreshes both the list and the affected detail view. */ export declare const useUpdateCustomer: () => import("@tanstack/react-query").UseMutationResult, Error, { name: string; customer: Customer; }, unknown>; /** * Deletes a customer and refreshes the customer list on success. */ export declare const useDeleteCustomer: () => import("@tanstack/react-query").UseMutationResult, Error, string, unknown>; /** * Loads the rate-limit tokens for a customer. */ export declare const useCustomerTokens: (name: string) => import("@tanstack/react-query").UseQueryResult, Error>; /** * Generates a rate-limit token for a customer and refreshes the token list. */ export declare const useCreateCustomerToken: (name: string) => import("@tanstack/react-query").UseMutationResult, Error, string, unknown>; /** * Deletes a rate-limit token for a customer and refreshes the token list. */ export declare const useDeleteCustomerToken: (name: string) => import("@tanstack/react-query").UseMutationResult, Error, number, unknown>; /** * Loads the members assigned to a customer. */ export declare const useCustomerMembers: (name: string) => import("@tanstack/react-query").UseQueryResult>, Error>; /** * Adds a member to a customer and refreshes the member list on success. */ export declare const useAddCustomerMember: (name: string) => import("@tanstack/react-query").UseMutationResult, Error, UserData, unknown>; /** * Removes a member from a customer and refreshes the member list on success. */ export declare const useRemoveCustomerMember: (name: string) => import("@tanstack/react-query").UseMutationResult, Error, UserData, unknown>; //# sourceMappingURL=use-customers.d.ts.map