export declare enum KudosType { INDIVIDUAL = "individual", TEAM = "team", MIXED = "mixed" } export declare enum FlagEventType { KUDOS_CREATED = "kudos-created", KUDOS_FAILED = "kudos-failed", JIRA_KUDOS_CREATED = "jira-kudos-created", JIRA_KUDOS_FAILED = "jira-kudos-failed", DIRTY = "dirty", CLOSE = "close" } type FlagEventTypeValue = `${FlagEventType}`; export declare const isFlagEventTypeValue: (value: string) => value is FlagEventTypeValue; type FlagType = 'error' | 'warning' | 'success' | 'info'; interface FlagAction { content: string | JSX.Element; href?: string; onClick?: () => void; target?: string; } export interface Flag { id: string | number; title: string | JSX.Element; description?: string | JSX.Element; icon?: JSX.Element; actions?: FlagAction[]; type?: FlagType; } export interface KudosRecipient { type: KudosType; recipientId: string; } export interface PrepopulateRecipientsVia { entityType: 'PROJECT' | 'GOAL'; entityARI: string; } export interface FlagEvent { eventType: FlagEventType; kudosUuid?: string; jiraKudosUrl?: string; jiraKudosFormUrl?: string; } export interface GiveKudosDrawerProps { testId?: string; isOpen: boolean; onClose: () => void; analyticsSource: string; recipient?: KudosRecipient; prepopulateRecipientsVia?: PrepopulateRecipientsVia; teamCentralBaseUrl: string; cloudId: string; addFlag?: (flag: any) => void; onCreateKudosSuccess?: (flagEvent: FlagEvent) => void; isActionsEnabled?: boolean; zIndex?: number; /** * Optional attributes merged into the createKudos opened analytics event (e.g. isNewUserProfile). */ openedEventAttributes?: Record; } export {};