import { type IMessageBoxOptions, type MessageBoxResult } from '@breadstone/mosaik-elements-foundation'; /** * Represents the return type of the `useMessageBox` hook. * * @public */ export interface IUseMessageBoxReturn { /** * Opens a message box with the specified options. * * @param options - Message box configuration options. * @returns Promise resolving to the MessageBoxResult. */ open(options?: Partial): Promise; /** * Closes a message box by its identifier. * * @param messageBoxId - The identifier of the message box to close. * @returns Promise that resolves when the message box is closed. */ close(messageBoxId: string): Promise; } /** * React hook for managing message boxes using the foundation MessageBoxService singleton. * * @remarks * This hook provides a React-idiomatic interface to the foundation MessageBoxService. * The service should be configured at application startup using `MessageBoxService.configure()`. * * @example * ```tsx * // In your app setup * MessageBoxService.configure({ * closeOnNavigation: true, * behaviors: [] * }); * * // In your component * function MyComponent() { * const messageBox = useMessageBox(); * * const handleConfirm = async () => { * const result = await messageBox.open({ * header: 'Confirm Delete', * content: 'Are you sure you want to delete this item?', * buttons: MessageBoxButtons.YesNo * }); * * if (result === MessageBoxResult.Yes) { * // User confirmed * } * }; * * return ; * } * ``` * * @public * @returns An object containing message box management functions. */ export declare function useMessageBox(): IUseMessageBoxReturn; //# sourceMappingURL=useMessageBox.d.ts.map