/** Module sources for running a model program: the same model.js runs in the Dynamic Worker and the Node lane. */ import type { ModelBuildResult, WorkerCode } from './types'; /** * The program becomes a MODULE (no eval): one preamble line, the loop-guarded source, then the exports the entry reads. * The source must have passed checkModelSource. */ export declare function modelModuleSource(source: string): string; /** A failing result for a program rejected before it runs. */ export declare function policyFailure(findings: ModelBuildResult['findings']): ModelBuildResult; /** * The Dynamic Worker's modules for one build. Its fetch() answers with encodeBuildResult(...) JSON. A program that * fails the static policy never reaches a module: the entry answers with the policy failure instead. */ export declare function createModelWorkerCode(source: string, runtime: { js: string; wasm: ArrayBuffer; }, opts?: { compatibilityDate?: string; }): WorkerCode;