import type { Ref } from '@stacksjs/stx'; /** * Create a confirm dialog composable with reveal/confirm/cancel flow. */ export declare function useConfirmDialog(): UseConfirmDialogReturn; export declare interface UseConfirmDialogReturn { isRevealed: Ref reveal: (data?: T) => Promise<{ data?: C, isCanceled: boolean }> confirm: (data?: C) => void cancel: () => void onConfirm: (fn: (data?: C) => void) => { off: () => void } onCancel: (fn: () => void) => { off: () => void } onReveal: (fn: (data?: T) => void) => { off: () => void } }