export type UseModalStackResult = { /** * How many modals are in front of this one (0 = frontmost) */ readonly depthFromFront: number; /** * Current number of open modals in the stack */ readonly stackSize: number; /** * The stack size when this modal opened (stable after open, useful for one-time decisions) */ readonly stackSizeAtOpen: number; }; /** * Hook to track this modal's position in the stack of open modals. * Returns the depth from front (0 = frontmost, 1 = one modal in front, etc.) * * This hook is aware of modals across bundle boundaries (host + Iris apps) * by listening for host modal count changes via postMessage. * * @param isOpen - Whether the modal is currently open */ export declare const useModalStack: (isOpen: boolean) => UseModalStackResult;