import { Ref } from 'vue'; import { MazBtnProps } from '../MazBtn.vue'; import { MazDialogConfirmInternalProps } from '../MazDialogConfirm.vue'; export interface MazDialogConfirmState { id: string; isActive: boolean; accept: (value: unknown) => void; reject?: (reason?: unknown) => void; } export interface MazDialogConfirmButtonAction extends Omit { type: never; text?: string; onClick: () => unknown; } export interface MazDialogConfirmButtonPromised extends Omit { text?: string; type: 'accept' | 'reject'; response?: unknown; } export type MazDialogConfirmButton = MazDialogConfirmButtonPromised | MazDialogConfirmButtonAction; export type MazDialogConfirmData = Omit; export declare const defaultData: { buttons: undefined; acceptText: string; hideAcceptButton: false; acceptProps: { color: "success"; type: "accept"; response: string; }; rejectText: string; hideRejectButton: false; rejectProps: { color: "destructive"; type: "reject"; response: string; }; }; declare function showDialogAndWaitChoice(identifier: string, callback?: () => unknown): Promise; declare function removeDialogFromState(identifier: string): MazDialogConfirmState[]; export declare function useMazDialogConfirm(): { data: Ref; dialogState: Ref; showDialogAndWaitChoice: typeof showDialogAndWaitChoice; removeDialogFromState: typeof removeDialogFromState; reject: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise; accept: (currentDialog: MazDialogConfirmState, response?: unknown, onClick?: () => unknown) => Promise; }; export {};