import * as React from 'react'; import type { SemanticClassName } from "../_util/classNameUtils"; import type { TransitionProps } from '../transition'; import type { ActionType, AlignType, ArrowTypeOuter, BuildInPlacements } from './interface'; export type { ActionType, AlignType, ArrowTypeOuter as ArrowType, BuildInPlacements }; export interface TriggerRef { nativeElement: HTMLElement; popupElement: HTMLDivElement; forceAlign: VoidFunction; } export interface TriggerProps { children: React.ReactElement; action?: ActionType | ActionType[]; showAction?: ActionType[]; hideAction?: ActionType[]; prefixCls?: string; zIndex?: number; onPopupAlign?: (element: HTMLElement, align: AlignType) => void; stretch?: string; popupOpen?: boolean; defaultPopupOpen?: boolean; onPopupOpenChange?: (open: boolean) => void; afterPopupOpenChange?: (open: boolean) => void; getPopupContainer?: (node: HTMLElement) => HTMLElement; forceRender?: boolean; autoDestroy?: boolean; mask?: boolean; maskClosable?: boolean; popupTransition?: Partial; maskTransition?: Partial; mouseEnterDelay?: number; mouseLeaveDelay?: number; focusDelay?: number; blurDelay?: number; popup: React.ReactNode | (() => React.ReactNode); popupPlacement?: string; builtinPlacements?: BuildInPlacements; popupAlign?: AlignType; popupStyle?: React.CSSProperties; getPopupClassNameFromAlign?: (align: AlignType) => string; onPopupClick?: React.MouseEventHandler; alignPoint?: boolean; /** * Trigger will memo content when close. * This may affect the case if want to keep content update. * Set `fresh` to `false` will always keep update. */ fresh?: boolean; arrow?: boolean | ArrowTypeOuter; className?: SemanticClassName<{ popup?: string; mask?: string; }>; /** * @private Get trigger DOM node. * Used for some component is function component which can not access by `findDOMNode` */ getTriggerDOMNode?: (node: React.ReactInstance) => HTMLElement; } export declare function generateTrigger(PortalComponent?: React.ComponentType): React.ForwardRefExoticComponent>; declare const _default: React.ForwardRefExoticComponent>; export default _default;