export type UserInteractionType = "PRIMARY" | "SECONDARY" | "CLOSE"; export interface ConfirmationDialogProps { /** * The heading of the modal. */ title: string; /** * The content to show in the modal. */ message: string; /** * The type of the primary action button. * For actions like delete, the primary action button should be primary-danger. */ primaryActionType: "primary" | "primary-danger"; /** * The label of the primary action button. * For example, "Delete user". */ primaryActionLabel: string; /** * The label of the secondary action button. * For example, "Cancel". */ secondaryActionLabel?: string; } export interface ConfirmationDialogRuntimeApi { confirm: (props: ConfirmationDialogProps) => Promise; }