UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

16 lines (15 loc) 628 B
import type { RefObject } from 'react'; export type ModalStackEntry = { _id: string; _scrollRef: RefObject<HTMLElement | null>; _contentRef: RefObject<HTMLElement | null>; _iiLocal?: { activate: (target?: HTMLElement | null) => void; revert: () => void; }; }; export declare function getListOfModalRoots(): ModalStackEntry[]; export declare function getModalRoot(index?: number): ModalStackEntry | null; export declare function addToIndex(elem: ModalStackEntry): void; export declare function removeFromIndex(elem: ModalStackEntry): void; export declare function getContent(props: any): any;