export declare const template = "{{#isNested}}\n// Capture the parent fork-block's args via closure BEFORE the inner\n// block scope opens; otherwise the inner `const __bstack = ...` would\n// put __bstack in TDZ for this entire arrow function's body.\nconst __parentForkArgs = __bstack.args;\n{\n{{/isNested}}\nconst __bstack = __forkBranchStack.getNewState();\nconst __self = __bstack.locals;\n// `__stateStack` is read from ALS via the `__stateStack()` accessor.\n// The branch ALS frame seeded by `runBatch.runInBranchAlsFrame`\n// (lib/runtime/runBatch.ts) already carries `stack: __forkBranchStack`,\n// so accessor calls inside the branch body resolve to the branch\n// stack automatically \u2014 no local rebind needed. The earlier\n// `const __stateStack = __forkBranchStack` line was removed because\n// it shadowed the runtime import and made `__stateStack()` calls\n// (emitted by interrupt/checkpoint templates) crash with\n// \"__stateStack2 is not a function\".\nconst {{{paramName:string}}} = __forkItem;\n{{#isNested}}\nObject.assign(__bstack.args, __parentForkArgs);\n{{/isNested}}\n__bstack.args[{{{paramNameQuoted}}}] = __forkItem;\nconst runner = new Runner(__ctx, __bstack, { state: __bstack, moduleId: {{{moduleId}}}, scopeName: {{{scopeName}}} });\ntry {\n{{{body}}}\nreturn runner.halted ? runner.haltResult : undefined;\n} finally {\n__forkBranchStack.pop();\n}\n{{#isNested}}\n}\n{{/isNested}}\n";
export type TemplateType = {
    isNested: boolean;
    paramName: string;
    paramNameQuoted: string | boolean | number;
    moduleId: string | boolean | number;
    scopeName: string | boolean | number;
    body: string | boolean | number;
};
declare const render: (args: TemplateType) => string;
export default render;
