/** * Copyright IBM Corp. 2021, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { RefObject } from 'react'; /** * Controls the presence (mount/unmount) of a panel element, waiting for a * named CSS exit animation to finish before removing it from the DOM. * * Signature mirrors the `usePresence` hook from `@carbon/ibm-products`: * `usePresence(open, ref, exitAnimationName)` → `{ shouldRender }` * * @param open - Whether the panel is currently open. * @param ref - Ref to the panel's root DOM element. * @param exitAnimationName - The CSS `animation-name` value used on exit. */ export declare const useSidePanelPresence: (open: boolean, ref: RefObject, exitAnimationName: string) => { shouldRender: boolean; };