bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
20 lines (19 loc) • 1.01 kB
text/typescript
import { Ref } from 'vue';
import { RegisterShowHideInstances, RegisterShowHideMapValue } from './keys';
/**
* Gets the active show/hide instance for a given ID.
* Uses getActive() which returns the most recent instance to handle UID disambiguation.
*
* @param registry - The show/hide registry ref (or null)
* @param id - The component ID to look up (or falsy value)
* @returns The active show/hide instance, undefined if not found, or null if id is falsy
*/
export declare const getActiveShowHide: (registry: Ref<Map<string, RegisterShowHideInstances>> | null, id: string | undefined) => RegisterShowHideMapValue | undefined | null;
/**
* Gets the boolean visibility state of a show/hide component.
*
* @param registry - The show/hide registry ref (or null)
* @param id - The component ID to look up
* @returns The visibility state (true if shown), or false if not found
*/
export declare const getShowHideValue: (registry: Ref<Map<string, RegisterShowHideInstances>> | null, id: string) => boolean;