import { ReactNode } from "react"; import { Signal } from "../styles/css-var"; import { ButtonAttributes } from "../elements/button"; import { TextBoxAttributes } from "../elements/inputs/text-box"; declare type MessageBoxButton = Omit & { $code?: string | number; $escapeButton?: boolean; $default?: boolean; $click?: (resolve: (value: any) => void, attrs?: MessageBoxButton) => void; }; declare type MessageBoxProps = { title?: string; message: ReactNode; buttons: Array; signal?: Signal; }; declare const useMessageBox: () => { show: (props: MessageBoxProps) => Promise; alert: (message: ReactNode, title?: string) => Promise; confirm: (message: ReactNode, title?: string) => Promise; text: (props: { message?: ReactNode; textBoxAttributes?: TextBoxAttributes; title?: string; }) => Promise<{ result: boolean; text: string; }>; }; export default useMessageBox;