/** * The state runtime of a static HTML export (`tq-state.js`): one plain script * that reads the bindings the generator wrote (StateBindings in * teleport-shared) and keeps a page in step with what a visitor clicks. * * Every page root and component instance with bindings is a scope with its own * store, built from its `data-tq-state`. A store reads through to the store of * the scope around it, and a click writes a state to the store that declares * it: a button in a header can open a modal its page owns, while a component's * own state still shadows the page's. One delegated listener runs the * `data-tq-on-click` actions of the clicked element and of every clickable * element around it, the way a click bubbles through React handlers, then * re-renders: `hidden` follows `data-tq-if` and classes follow * `data-tq-class`. The generator already wrote the starting state into the * markup, so the first render changes nothing. * * Expressions are read by a small parser, never handed to `eval`, so a page * keeps working under a strict Content-Security-Policy. */ export declare const STATE_RUNTIME_SCRIPT: string; /** `hidden` must win over an author's `display: flex`, which the browser's own rule would lose to. */ export declare const STATE_RUNTIME_CSS: string; //# sourceMappingURL=runtime-script.d.ts.map