import React, { FunctionComponent } from 'react'; import { PopupProps } from '../popup/popup.taro'; export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end'; export interface List { key?: string; name: string; icon?: React.ReactNode; disabled?: boolean; className?: string; action?: { icon?: React.ReactNode; onClick?: (e: any) => void; }; } export interface PopoverProps extends PopupProps { list: List[]; location: PopoverLocation | string; visible: boolean; offset: string[] | number[]; arrowOffset: number; targetId: string; showArrow: boolean; closeOnOutsideClick: boolean; closeOnActionClick: boolean; children?: React.ReactNode; onClick: () => void; onOpen: () => void; onClose: () => void; onSelect: (item: List, index: number) => void; } export declare const Popover: FunctionComponent & Omit, 'onSelect'>>;