UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

24 lines 726 B
/** * Process reactive bindings in HTML template * Detects {{ $store.value }} patterns in attribute values */ export declare function processReactiveBindings(html: string): ProcessedBindings; /** * Generate the client-side JavaScript for reactive bindings */ export declare function generateBindingsRuntime(bindings: BindingInfo[], stores: Set<string>): string; /** * Process template with reactive bindings and generate runtime */ export declare function processTemplateBindings(html: string): string; declare interface BindingInfo { elementId: string attribute: string expression: string stores: string[] } declare interface ProcessedBindings { html: string bindings: BindingInfo[] stores: Set<string> }