/** * The names the VM must NOT carry — and the two it may hold only from the host. * * `Date` and `Math.random` are `$expr`'s two deletions, for `$expr`'s reason: a * screen that reads them paints differently on two identical renders. Timers * join them here — a screen paints from data and events, and a `setTimeout` * inside a VM the host drives by hand is a scheduled event nobody will ever * run. Each is REPLACED rather than deleted where a message helps: "not a * function" tells whoever repairs the screen nothing. * * `console` is the exception that is added rather than removed: a stray * `console.log` is not a capability, and a bare context has no `console`, so * without this one a debug line the model forgot to delete is a ReferenceError * that takes the whole screen down. * * The frozen clock and {@link INTL_SOURCE} are the other shape of the same rule: * both are things a screen genuinely needs, both would read the machine the VM * happens to run on, so both are answered by the HOST instead — the clock as one * pinned instant, `Intl` across the wall. */ export declare function sealSource(now: number | undefined): string; /** Preact, then the engine. One string, evaluated once per screen. */ export declare const SCREEN_RUNTIME: string; export interface InstallInput { compiledSource: string; queries: Record; /** Mount props for the component — a PORT's paint can depend on its host * call site. Serialized into the program, so JSON-only by construction. */ props?: Record; catalog: readonly string[]; } /** * This screen: its `@vendo/screen` module, its component, its first paint. * * The compiled source is evaluated as a CommonJS module body — `require`, * `module`, `exports` — because that is what a VM can host without a module * loader, and because it is one esbuild flag (`format: "cjs"`) away from the * TSX the model wrote. An ES module arriving here is a syntax error; ./boot.ts * names that case rather than passing the parser's complaint along. */ export declare function installSource(input: InstallInput): string; //# sourceMappingURL=vm-program.d.ts.map