/**
 * @packageDocumentation
 *
 * Utility for displaying confirm modals in Obsidian.
 *
 * This module exports a function to display a modal with a message in Obsidian. The modal includes "OK" and "Cancel" buttons to confirm or cancel the action.
 */
import type { App } from 'obsidian';
/**
 * Options for {@link confirm}.
 */
export interface ConfirmOptions {
    /**
     * An Obsidian app instance.
     */
    app: App;
    /**
     * A text for the "Cancel" button.
     */
    cancelButtonText?: string;
    /**
     * A CSS class to apply to the modal.
     */
    cssClass?: string;
    /**
     * A message to display in the modal.
     */
    message: DocumentFragment | string;
    /**
     * A text for the "OK" button.
     */
    okButtonText?: string;
    /**
     * A title of the modal.
     */
    title?: DocumentFragment | string;
}
/**
 * Displays an confirm modal in Obsidian with a specified message.
 *
 * @param options - The options for the confirm modal.
 * @returns A {@link Promise} that resolves with a boolean indicating whether the "OK" button was clicked.
 */
export declare function confirm(options: ConfirmOptions): Promise<boolean>;
