import * as React from 'react'; type PresenceState = 'open' | 'closed'; /** * Keeps an element mounted while its exit animation plays: the React twin of the engine's `createPresence`, so a * block animates the same way in both renderers. * * Render the element while `isMounted`, with `ref` and `data-state={state}`; the core motion recipes animate `open` * in and `closed` out. With `appear: false` an element that is present from the start renders no state until * `present` first changes, so it does not animate on mount. */ declare const usePresence: (present: boolean, { appear }?: { appear?: boolean; }) => { ref: React.RefObject; isMounted: boolean; state: PresenceState | undefined; }; export { usePresence };