import { type ReactEventHandler } from 'react'; import { type AriaLabelingProps, type DataTestId, type MaskingProps, type StylingProps, type WithChildren } from '@dynatrace/strato-components/core'; import type { IntentPayload, SendIntentOptions, SendIntentWithResponseOptions } from '@dynatrace-sdk/navigation'; /** * @public */ export interface MenuIntentBaseProps extends WithChildren, AriaLabelingProps, StylingProps, DataTestId, MaskingProps { disabled?: boolean; payload: IntentPayload; onSelect?: ReactEventHandler; } /** * @public */ export interface SuccessResponse { status: 'success'; data: Record; } /** * @public */ export interface ErrorResponse { status: 'error'; error: Error; } /** * @public */ export interface MenuIntentWithResponseProps extends MenuIntentBaseProps { options: SendIntentWithResponseOptions; onResponse: (response: SuccessResponse | ErrorResponse) => void; } /** * @public */ export interface MenuIntentWithoutResponseProps extends MenuIntentBaseProps { options: SendIntentOptions; onResponse?: never; } /** * @public */ export type MenuIntentProps = MenuIntentWithResponseProps | MenuIntentWithoutResponseProps; /** * A menu subcomponent to send intents. * @public */ export declare const Intent: (props: MenuIntentProps & import("react").RefAttributes) => React.ReactElement | null;