/** * @jsxRuntime classic * @jsx jsx */ import React from 'react'; import { type UIAnalyticsEvent } from '@atlaskit/analytics-next'; import { type ButtonProps, IconButton } from '@atlaskit/button/new'; import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu'; import { type AgentVerificationDropdownItemProps } from '../agent-verification-dropdown-item'; type ChatToAgentButtonProps = { onClick: ButtonProps['onClick']; }; type CustomDropdownOption = { id: string; label: string; onClick: () => void; }; export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => JSX.Element; type ViewAgentOptionProps = { showViewAgentOption: true; onViewAgentClick: React.ComponentProps['onClick']; } | { showViewAgentOption?: false; onViewAgentClick?: undefined; }; type ViewAgentFullProfileProps = { onViewAgentFullProfileClick: React.ComponentProps['onClick']; doesAgentHaveIdentityAccountId: boolean; } | { onViewAgentFullProfileClick?: undefined; doesAgentHaveIdentityAccountId?: undefined; }; type AgentDropdownMenuProps = { isAutodevTemplateAgent?: boolean; agentId: string; agentName?: string; onEditAgent?: React.ComponentProps['onClick']; onCopyAgent?: React.ComponentProps['onClick']; onDuplicateAgent?: (e: React.MouseEvent | React.KeyboardEvent) => Promise; onDeleteAgent?: React.ComponentProps['onClick']; isForgeAgent: boolean; onDropdownTriggerClick?: (e: React.MouseEvent, analyticsEvent: UIAnalyticsEvent) => void; onOpenChange?: React.ComponentProps['onOpenChange']; spacing?: React.ComponentProps['spacing']; appearance?: React.ComponentProps['appearance']; dropdownMenuTestId?: React.ComponentProps['testId']; loadPermissionsOnMount?: boolean; shouldTriggerStopPropagation?: boolean; loadAgentPermissions: () => Promise<{ isCreateEnabled?: boolean; isEditEnabled: boolean; isDeleteEnabled: boolean; }>; customDropdownOptions?: CustomDropdownOption[]; } & ViewAgentOptionProps & ViewAgentFullProfileProps & Partial>; export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, agentRef, userPermissionsRef, onVerificationSuccess, customDropdownOptions, }: AgentDropdownMenuProps) => JSX.Element; export {};