/****************************************************************************** * 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 *****************************************************************************/ interface ChangeNamespaceRequest { oldNamespace: string; newNamespace: string; removeOldNamespace: boolean; mergeIfNewNamespaceAlreadyExists: boolean; } export declare const namespaceAdminKeys: { detail: (name: string) => readonly ["admin", "namespace", string]; }; /** * Looks up a single namespace for the admin search view. `staleTime: 0` keeps * each lookup fresh and `retry: false` lets a 404 surface immediately as a * "not found" result rather than being retried. */ export declare const useAdminNamespace: (name: string) => import("@tanstack/react-query").UseQueryResult>, Error>; /** * Creates a namespace and refreshes the matching lookup on success. */ export declare const useCreateNamespace: () => import("@tanstack/react-query").UseMutationResult, Error, string, unknown>; /** * Renames (and optionally merges) a namespace. Throws on an error result so the * caller's catch / onError path runs. */ export declare const useChangeNamespace: () => import("@tanstack/react-query").UseMutationResult, Error, ChangeNamespaceRequest, unknown>; /** * Deletes a namespace. Throws on an error result so the caller's catch / * onError path runs. */ export declare const useDeleteNamespace: () => import("@tanstack/react-query").UseMutationResult, Error, string, unknown>; /** * Drops a namespace lookup from the cache, e.g. after it has been deleted so a * later search refetches instead of showing the removed namespace. */ export declare const useClearAdminNamespace: () => (name: string) => void; export {}; //# sourceMappingURL=use-namespace-admin.d.ts.map