import type { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
import { type ShareFlowResource } from "./useShareFlow";
/** Props for {@link SharePanel}. */
export interface SharePanelProps {
    /** The resource to share. */
    readonly resource: ShareFlowResource;
    /** Resource kind string for the API ref (e.g. "agent", "session"). */
    readonly resourceKindString: string;
    /** ApiResourceKind enum value for grantable-role lookup. */
    readonly resourceKind: ApiResourceKind;
    /** Fired when the user closes the panel. */
    readonly onClose?: () => void;
    /** Additional CSS class names for the root container. */
    readonly className?: string;
}
/**
 * Self-contained sharing panel that displays who has access to a
 * resource and allows granting/revoking access.
 *
 * Combines the access list (from {@link useShareFlow}) with the
 * {@link GrantAccessForm} in a single panel suitable for embedding
 * in a popover, sidebar, or dialog.
 *
 * All visual properties flow through `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * <SharePanel
 *   resource={{ kind: "session", id: sessionId, resourceKind: ApiResourceKind.session }}
 *   resourceKindString="session"
 *   resourceKind={ApiResourceKind.session}
 *   onClose={() => setOpen(false)}
 * />
 * ```
 */
export declare function SharePanel({ resource, resourceKindString, resourceKind, onClose, className, }: SharePanelProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=SharePanel.d.ts.map