import type { MouseEvent, KeyboardEvent, Ref } from 'react'; import type { BaseProps, IconProps, NoChildrenProp } from '@pega/cosmos-react-core'; export interface IntelligentGuidanceItemProps { /** Unique id for item */ id: string; /** The label text of the item. */ label: string; /** Name of the icon (to be selected from default Pega icon set) */ icon: IconProps['name']; /** Represents the type of task */ type: string; /** Click handler for the action button. */ onClick: (e: MouseEvent | KeyboardEvent) => void; /** Dismiss handler for the action button. */ onDismiss?: (id: IntelligentGuidanceItemProps['id'], e: MouseEvent) => void; /** Flag that indicates if item is new * @default false */ new?: boolean; } export default interface IntelligentGuidanceProps extends BaseProps, NoChildrenProp { /** List of guidance items. */ items: IntelligentGuidanceItemProps[]; /** Display label for the list of guidance items. The default value is a locale translation of 'Current' * @default 'Current' * */ itemsLabel?: string; /** List of guidance previous items. */ previousItems?: IntelligentGuidanceItemProps[]; /** Display label for the list of previous guidance items. The default value is a locale translation of 'Previous' * @default 'Previous' * */ previousItemsLabel?: string; /** Header text. */ heading: string; /** Flag that indicates if intelligent guidance is collapsed */ isCollapsed: boolean; /** Callback when expand/collapse button is clicked */ onExpandCollapse: () => void; /** Ref for the wrapping element. */ ref?: Ref; } //# sourceMappingURL=IntelligentGuidance.types.d.ts.map