import { Component, VNode } from 'preact'; export interface StateType { visible: boolean; childNode: HTMLElement; } export interface PropsType { visible?: boolean; onVisibleChange?: (visible: boolean) => void; content: string | VNode; children: VNode; trigger?: 'click' | 'hover'; popoverClassName?: string; popoverStyles?: any; placement?: 'topLeft' | 'topCenter' | 'topRight' | 'leftTop' | 'leftCenter' | 'leftBottom' | 'rightTop' | 'rightCenter' | 'rightBottom' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; } declare class Popover extends Component { constructor(props: any); onVisibleChange: (visible: any) => (e: any) => void; closeTooltip: (e: any) => void; componentDidMount(): void; componentWillUnmount(): void; receiveChildren: (childNode: any) => void; renderTooltip: () => VNode; render(): VNode; } export default Popover;