import type { PlatformClient } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/api_pb";
import type { PlatformClientCreateResponse } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/io_pb";
/** Props for {@link PlatformClientDetailPanel}. */
export interface PlatformClientDetailPanelProps {
    /** The platform client resource to display and edit. */
    readonly platformClient: PlatformClient;
    /** Fired with the updated resource after a successful save. */
    readonly onUpdated?: (pc: PlatformClient) => void;
    /**
     * Fired after a successful secret rotation with the response
     * containing the one-time new raw secret.
     */
    readonly onSecretRotated?: (response: PlatformClientCreateResponse) => void;
    /** Fired after a successful deletion. */
    readonly onDeleted?: () => void;
    /** Fired when the user clicks the back button. */
    readonly onBack?: () => void;
    /** Additional CSS class names for the root container. */
    readonly className?: string;
}
/**
 * View and edit panel for an existing platform client.
 *
 * In **view mode**, displays all configuration fields in a structured
 * label/value layout with "Edit", "Rotate Secret", and "Delete"
 * actions.
 *
 * In **edit mode**, mutable spec fields become editable: JIT
 * provisioning toggles, expiry, auto-grant role, and allowed
 * origins. Credential fields (`clientId`, `secretFingerprint`) are
 * read-only. "Save" submits the update; "Cancel" discards changes.
 *
 * Secret rotation triggers `onSecretRotated` with the full
 * {@link PlatformClientCreateResponse} so the parent can show the
 * one-time secret alert.
 *
 * All visual properties flow through `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * <PlatformClientDetailPanel
 *   platformClient={pc}
 *   onUpdated={(updated) => refetch()}
 *   onSecretRotated={(resp) => setFlow({ phase: "revealing", resp })}
 *   onDeleted={() => setFlow({ phase: "idle" })}
 *   onBack={() => setFlow({ phase: "idle" })}
 * />
 * ```
 */
export declare function PlatformClientDetailPanel({ platformClient, onUpdated, onSecretRotated, onDeleted, onBack, className, }: PlatformClientDetailPanelProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=PlatformClientDetailPanel.d.ts.map