import type { DiscoveredFsAgent, DiscoveredFsSingleton, DiscoveredFsWorkflow } from './discover.js'; /** * Generate the source of a wrapper module that: * 1. imports the user's real Mastra entry, * 2. imports each discovered `config.ts`, `instructions.ts`, `tools/*.ts`, * `skills/*.ts` (`createSkill(...)` modules), `workspace.ts`, and * `memory.ts`, inlining packaged `SKILL.md` skills, * 3. assembles `Agent` instances via `assembleAgentFromFsEntry`, wiring any * declared `subagents/` into the parent (nested up to `MAX_FS_SUBAGENT_DEPTH`), * 4. registers them onto the user's `mastra` instance (code-registered agents * win on name collisions), and * 5. re-exports everything from the user's entry so this module is a drop-in * replacement for the original `#mastra` target. * * `instructions.md` is read into the generated wrapper. In dev, the CLI watcher * regenerates that wrapper when the markdown file changes. `instructions.ts` is * imported instead, so the bundler already tracks it through the module graph. * * @param userEntry slash-normalized absolute path to the user's mastra entry. * @param agents discovered fs-routed agents (absolute, slash-normalized paths). */ export declare function generateFsAgentsModule(userEntry: string | undefined, agents: DiscoveredFsAgent[], options?: { workflows?: DiscoveredFsWorkflow[]; storage?: DiscoveredFsSingleton; observability?: DiscoveredFsSingleton; logger?: DiscoveredFsSingleton; server?: DiscoveredFsSingleton; studio?: DiscoveredFsSingleton; }): Promise; /** * Generate the workflow-registration lines to splice into the generated wrapper * module. Emits import statements for each discovered workflow module and a * registration block that calls `__registerFsWorkflows` on the user's mastra. * * Returns `{ importLines, registrationLines }` so the caller can place them at * the correct positions in the wrapper source. */ export declare function generateFsWorkflowsCodegen(workflows: DiscoveredFsWorkflow[]): { importLines: string[]; registrationLines: string[]; }; //# sourceMappingURL=codegen.d.ts.map