/** * Singleton hook to check if multiple elements can be dismissed and returns flag only for the latest one * Example: Use to only close the latest opened Flyout/Modal */ import React from "react"; type Ref = React.RefObject; declare const useIsDismissible: (args: { active?: boolean; contentRef: Ref; triggerRef?: Ref; hasTrigger?: boolean; }) => () => boolean; export default useIsDismissible;