/** * The trusted interaction runtime. * * This is the only JavaScript the compiler emits, and it is a fixed program: a * spec can bind actions, but it cannot author a handler, an expression, or a * selector. Feature blocks are concatenated in a fixed order and only the * features a page uses are included, so a page without a carousel ships no * carousel code. * * Written in a conservative, dependency-free style (no arrow functions, no * template literals) so the emitted artifact does not depend on a build step or * a modern-browser-only syntax tier. */ import type { FeatureModule } from '../registry/block-module.js'; import type { RuntimeFeature } from '../registry/roster.js'; export interface RuntimeOptions { features: ReadonlySet; state: Record; /** True when at least one block declares an action binding. */ hasBindings: boolean; /** Registry features the page uses, in registry order. */ moduleFeatures?: readonly FeatureModule[]; } /** Build the emitted runtime for the features a page actually uses. */ export declare function buildRuntime(options: RuntimeOptions): string; /** Features whose presence requires the live region in the document. */ export declare function needsLiveRegion(features: ReadonlySet, moduleFeatures?: readonly FeatureModule[]): boolean; //# sourceMappingURL=runtime.d.ts.map