import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
/** Tab identifier for the MCP server capability panel. */
export type CapabilityTab = "tools" | "policies" | "resources";
/** Props for {@link McpServerDetailView}. */
export interface McpServerDetailViewProps {
    /** Organization slug that owns the MCP server. */
    readonly org: string;
    /** MCP server slug (URL-friendly identifier unique within the org). */
    readonly slug: string;
    /**
     * Called once when the MCP server resource has been fetched successfully.
     * Provides the resource display name for use cases like breadcrumbs,
     * document titles, or analytics — without requiring the consumer to
     * also call {@link useMcpServer}.
     *
     * Not called on error or not-found states.
     */
    readonly onResourceLoad?: (meta: {
        name: string;
        id: string;
    }) => void;
    /**
     * Called when the user toggles visibility via the inline control.
     * When provided, the header renders an interactive
     * {@link VisibilityToggle} instead of a read-only badge.
     * When omitted, visibility is displayed as a static "Public" pill.
     */
    readonly onVisibilityChange?: (v: ApiResourceVisibility) => void;
    /** `true` while a visibility update RPC is in flight. */
    readonly isVisibilityPending?: boolean;
    /**
     * Initial active capability tab. Defaults to `"tools"`.
     * Useful for deep-linking or demo scenarios that need to start on
     * a specific tab.
     */
    readonly defaultCapabilityTab?: CapabilityTab;
    /**
     * When `true`, the credential form opens immediately on mount
     * (instead of waiting for a Connect click). Useful for guided tours
     * and demo scenarios that need to show the credential entry step
     * without user interaction.
     * @default false
     */
    readonly defaultShowCredentialForm?: boolean;
    /**
     * Pre-fill function for credential form inputs. When provided, the
     * {@link EnvVarForm} receives these as `poolValues`, populating
     * fields on mount. Useful for demo scenarios that simulate a user
     * having already entered credentials.
     */
    readonly credentialPoolValues?: (key: string) => import("@stigmer/sdk").EnvVarInput | undefined;
    /**
     * The authenticated user's active organization slug.
     * Used for OAuth token storage — tokens are stored in the user's personal
     * environment within this org, not the MCP server's org.
     * When omitted, falls back to the `org` prop (MCP server's org).
     */
    readonly activeOrg?: string;
    /** Additional CSS classes for the root container. */
    readonly className?: string;
}
/**
 * Detail view for an MCP Server integration.
 *
 * Fetches the server via {@link useMcpServer} internally and renders
 * its full configuration: validation banner (if invalid), header,
 * a **Connect bar** with a single Connect/Reconnect action, and a
 * **tabbed capabilities panel** (Tools, Policies, and optionally
 * Resources) showing read-only discovered data.
 *
 * The Connect bar above the tabs is the single entry point for
 * capability discovery and tool approval classification. It handles
 * credential gating inline — when credentials are missing, the form
 * slides in below the bar.
 *
 * Handles loading, error, and not-found states automatically.
 * Zero Console dependencies — safe for platform builder embedding.
 * All visual properties flow through `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * // Minimal — self-contained, fetches its own data
 * <McpServerDetailView org="acme" slug="github" />
 * ```
 */
export declare function McpServerDetailView({ org, slug, onResourceLoad, onVisibilityChange, isVisibilityPending, defaultCapabilityTab, defaultShowCredentialForm, credentialPoolValues, activeOrg, className, }: McpServerDetailViewProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=McpServerDetailView.d.ts.map