/** * vapor-chamber - IIFE variant: CORE * * Audience: server-rendered apps with sprinkled JS - Blade, Rails, Django, * .NET MVC, WordPress. The page already returns HTML; you need a command bus * to dispatch user actions to the backend (cart add, form submit, analytics). * * Surface: * - Command bus (sync + async) * - HTTP transport only (httpTransport) * - Lightweight plugins: logger, validator, authGuard * - pace() - debounce or throttle a dispatch at the sender * - bindCommands() - [data-vc-command] on plain HTML, the bus passed in * - bindDisplay() - data-vc-text, -show, -each, -pending on a store and the command state * - defineChamberStore (core) and commandState - what the display bindings read * - createApp() for one-line setup * - connect() - even shorter: HTTP + CSRF in a single call * * NOT in this variant (use `vapor-chamber.iife.js` if you need them): * - WebSocket / SSE transports - realtime infra is a different deployment shape * - createChannel / history, the store's persist and tab sync * - mount() - DOM-coupled convenience * - Vapor custom elements - see `vapor-chamber-elements.iife.js` */ import { createCommandBus, createAsyncCommandBus } from './command-bus'; import { logger, validator, authGuard } from './plugins'; import { httpTransport } from './transports'; import { pace } from './pace'; import { bindCommands } from './command-binding'; import { bindDisplay } from './page-bindings'; import { commandState } from './command-state'; import { Accepted } from './accepted'; import { createApp, connect } from './iife-app'; import { createBuffer } from './buffer'; declare const VaporChamber: { readonly createCommandBus: typeof createCommandBus; readonly createAsyncCommandBus: typeof createAsyncCommandBus; readonly createBuffer: typeof createBuffer; readonly createApp: typeof createApp; readonly connect: typeof connect; readonly httpTransport: typeof httpTransport; readonly logger: typeof logger; readonly validator: typeof validator; readonly authGuard: typeof authGuard; readonly pace: typeof pace; readonly bindCommands: typeof bindCommands; readonly bindDisplay: typeof bindDisplay; readonly defineChamberStore: | null>>(id: string, options: import("./store/core").ChamberStoreOptions) => (bus: B, router?: import("./store-base").StoreRouter) => import("./store-base").ChamberStore; readonly commandState: typeof commandState; readonly Accepted: typeof Accepted; }; export default VaporChamber; //# sourceMappingURL=iife-core.d.ts.map