import type { Fn } from '../@aileron/declare/index.js'; import type { ModalNode } from '../core/index.js'; import type { Modal } from '../types/index.js'; export declare class ModalManager { private static __anchor__; private static __scope__; private static __hash__; private static __styleManager__; private static __styleSheetDefinition__; static anchor(options?: { tag?: string; prefix?: string; root?: HTMLElement; }): HTMLElement; static get anchored(): boolean; private static __prerenderList__; static get prerender(): Modal[]; private static __defaultOpenHandler__; private static __openHandler__; /** * Registers the React-side open handler, then flushes the prerender queue * through it so modals opened before mount keep their promise wiring alive. */ static set openHandler(handler: Fn<[Modal], ModalNode>); /** Attaches a flush-time dispatcher to a queued modal; no-op if not queued. */ static bindPrerender(modal: Modal, dispatch: Fn): void; /** Removes a queued modal (pre-mount abort). Returns whether it was queued. */ static cancelPrerender(modal: Modal): boolean; private static __refreshHandler__?; static set refreshHandler(handler: Fn<[], void>); static refresh(): void; static defineStyleSheet(styleId: string, css: string): void; static applyStyleSheet(): void; static getHashedClassNames(styleId: string): string; static reset(): void; static open(modal: Modal): ModalNode | undefined; }