UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

20 lines 828 B
/** * Upload Vanilla — framework-free bindings (ADR 0034 wedge 5). * * Import from `trellis/upload/vanilla`: * * const upload = createVanillaUpload({ transport: httpTransport }); * upload.actions.add({ id: 'a1', name: 'photo.png', size: 2048 }); * upload.subscribe(() => render(upload.state)); * * @module trellis/upload/vanilla */ 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 framework-free upload list from a config or an existing core * (to share one mount across adapters) with the standard core surface. */ export declare function createVanillaUpload(input: UploadInput): UseUploadReturn; //# sourceMappingURL=index.d.ts.map