export declare const template = "import * as mod from {{{compiledModulePath:string}}};\nimport { discoverExports } from {{{discoveryPath:string}}};\nimport { startHttpServer } from {{{httpAdapterPath:string}}};\nimport { createLogger } from {{{loggerPath:string}}};\n\nconst exportedNodeNames = {{{exportedNodeNamesJson:string}}};\nconst interruptKindsByName = {{{interruptKindsByNameJson:string}}};\n\nconst exports = discoverExports({\n  toolRegistry: mod.__toolRegistry ?? {},\n  moduleExports: mod,\n  moduleId: {{{moduleId:string}}},\n  exportedNodeNames,\n  interruptKindsByName,\n});\n\nconst rawPort = process.env.PORT ?? {{{defaultPort:string}}};\nconst port = parseInt(rawPort, 10);\nif (isNaN(port) || port < 1 || port > 65535) {\n  console.error(\"Invalid PORT: \" + rawPort + \". Must be an integer between 1 and 65535.\");\n  process.exit(1);\n}\nconst host = process.env.HOST ?? {{{defaultHost:string}}};\nconst apiKey = process.env[{{{apiKeyEnv:string}}}];\n\ntry {\n  startHttpServer({\n    exports,\n    port,\n    host,\n    apiKey,\n    logger: createLogger(\"info\"),\n    hasInterrupts: mod.hasInterrupts,\n    respondToInterrupts: mod.respondToInterrupts,\n  });\n} catch (err) {\n  console.error(err instanceof Error ? err.message : String(err));\n  process.exit(1);\n}\n";
export type TemplateType = {
    compiledModulePath: string;
    discoveryPath: string;
    httpAdapterPath: string;
    loggerPath: string;
    exportedNodeNamesJson: string;
    interruptKindsByNameJson: string;
    moduleId: string;
    defaultPort: string;
    defaultHost: string;
    apiKeyEnv: string;
};
declare const render: (args: TemplateType) => string;
export default render;
