import * as React from 'react'; import type { ZestPortalModalProps } from '../../types'; /** * A portal element that moves the tooltip to the top of the app. * * Like the rest of the popup family this is React Native's `Modal`, which keeps * children in the same React tree (so contexts survive) and gives the popup a * screen-origin coordinate space for positioning. * * The portal also renders the dismissal surface: a tooltip has no backdrop part, * so a press anywhere outside the popup closes it. */ export declare function TooltipPortal(props: TooltipPortal.Props): React.JSX.Element | null; export interface TooltipPortalProps { children?: React.ReactNode; /** * Whether to keep the portal mounted while the tooltip is closed. * @default false */ keepMounted?: boolean | undefined; /** * Props forwarded to the underlying React Native `Modal`. Lets you replace * the default `animationType="none"` with a native `"fade"`/`"slide"`, or reach * the rest of the Modal API. * `visible` stays owned by the tooltip's open state, and `onRequestClose` is * chained rather than replaced. */ modalProps?: ZestPortalModalProps | undefined; } export declare namespace TooltipPortal { type Props = TooltipPortalProps; } //# sourceMappingURL=TooltipPortal.d.ts.map