/******************************************************************************** * Copyright (c) 2020 TypeFox and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { FunctionComponent, ReactNode } from 'react'; import { FetchNamespaceExtension } from './namespace-extension-list'; import { Namespace, UserData } from '../../extension-registry-types'; export interface NamespaceDetailConfig { defaultMemberRole?: 'contributor' | 'owner'; } export declare const NamespaceDetailConfigContext: import("react").Context; /** * Reusable view of a namespace: its optional not-verified warning, header, member list, details and * extension list. It is page-agnostic — page-specific concerns are injected: * - `headerActions` lets a host render extra buttons in the header (e.g. the admin * "Change Namespace"/"Delete" actions together with their dialogs). * - `fetchExtension` selects the endpoint used to load each extension (public vs. admin). */ export declare const NamespaceDetailView: FunctionComponent; export interface NamespaceDetailViewProps { namespace: Namespace; filterUsers: (user: UserData) => boolean; fixSelf: boolean; setLoadingState: (loading: boolean) => void; namespaceAccessUrl?: string; theme?: string; headerActions?: ReactNode; fetchExtension?: FetchNamespaceExtension; extensionRoutePrefix: string; } //# sourceMappingURL=namespace-detail-view.d.ts.map