import * as React from 'react'; import type { Rect } from '../web'; export interface EntangledPortalStateOpts { position?: (base: Rect, dest: Rect) => [x: number, y: number]; onBase?: (el: HTMLSpanElement | null) => void; onDest?: (el: HTMLElement | null) => void; } export interface EntangledPortalProps extends EntangledPortalStateOpts { span?: React.HTMLAttributes; children?: React.ReactNode; } /** * Renders a with a
child rendered in a portal, such that the *
position is entangled with the position, the
moves * with the on resize and scroll. */ export declare const EntangledPortal: React.FC;