import type { ModalOption, ModalResponse } from '../types/modal'; /** * Opens a global modal dialog and waits for user interaction. * Creates a singleton modal element if one doesn't exist, or reuses the existing one. * The modal is appended to document.body and persists for reuse. * * @param option - Configuration object defining the modal's title, description, icon, and behavior * @returns A promise that resolves with response data when the modal is closed * * @example * ```typescript * // Simple informational modal * const result = await openModal({ * title: 'Success', * description: 'Your changes have been saved.', * icon: 'check-circle' * }); * * // Modal with custom markup * const result = await openModal({ * title: 'Confirm Action', * customMarkup: '
Are you sure you want to proceed?
', * closeable: true * }); * ``` */ export declare const openModal: (option: ModalOption) => Promise