/**
 * Clicks a button on a modal dialog with the specified button text.
 *
 * @param buttonText - The text of the button to be clicked on the modal dialog.
 * @returns A promise that resolves when the button click action is completed.
 * @throws Will throw an error if the modal dialog is undefined.
 */
export declare const clickButtonOnModalDialog: (buttonText: string, failOnError?: boolean) => Promise<void>;
