trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
22 lines • 865 B
TypeScript
/**
* Upload Vue — `useUploadVue` composable (ADR 0034 wedge 5).
*
* Import from `trellis/upload/vue`:
*
* const upload = useUploadVue({ transport: httpTransport });
* upload.actions.add({ id: 'a1', name: 'photo.png', size: 2048 });
*
* State is a Vue `reactive` object mirrored from the core via the shared
* `syncFromCore` bridge (same pattern as `trellis/forms/vue`).
*
* @module trellis/upload/vue
*/
import type { UploadConfig, UseUploadReturn } from '../core/index.js';
/** Accept either a config (fresh core) or an existing core (shared mount). */
export type UploadInput = UploadConfig | UseUploadReturn;
/**
* Create a reactive Vue upload list. The core's state is mirrored into a
* `reactive()` object on every mutation.
*/
export declare function useUploadVue(input: UploadInput): UseUploadReturn;
//# sourceMappingURL=index.d.ts.map