import type * as React from 'react'; import type { HasProperty } from '@mui/x-internals/types'; import type { ChartsTypeFeatureFlags } from "./featureFlags.js"; /** * The event a click callback receives. * * It only describes the pointer event by default. Add * `import type {} from '@mui/x-charts/moduleAugmentation/keyboardActivation'` to also get the * `KeyboardEvent` fired by the `keyboardActivation` experimental feature. */ export type ChartsActivationEvent = ([Element] extends [never] ? MouseEvent : React.MouseEvent) | (HasProperty extends true ? ChartsTypeFeatureFlags['keyboardActivationOverride'] : never);