trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
22 lines • 860 B
TypeScript
/**
* Dialog Vue — `useDialogVue` composable (ADR 0034 wedge 2).
*
* Import from `trellis/dialog/vue`:
*
* const { state, actions } = useDialogVue();
* const result = await actions.open({ title: 'Delete?', kind: 'confirm' });
*
* State is a Vue `reactive` object mirrored from the core via the shared
* `syncFromCore` bridge (same pattern as `trellis/forms/vue`).
*
* @module trellis/dialog/vue
*/
import type { DialogConfig, UseDialogReturn } from '../core/index.js';
/** Accept either a config (fresh core) or an existing core (shared mount). */
export type DialogInput = DialogConfig | UseDialogReturn;
/**
* Create a reactive Vue dialog stack. The core's state is mirrored into a
* `reactive()` object on every mutation.
*/
export declare function useDialogVue(input?: DialogInput): UseDialogReturn;
//# sourceMappingURL=index.d.ts.map