import { Type } from "typebox"; /** Initial input: the extension supplies the project root so steps can resolve paths without a cwd assumption. */ export declare const createInputSchema: Type.TObject<{ projectRoot: Type.TString; }>; /** What the interview must establish before any code is generated. */ export declare const specSchema: Type.TObject<{ name: Type.TString; description: Type.TString; summary: Type.TString; steps: Type.TArray, Type.TLiteral<"agent">, Type.TLiteral<"questionnaire">]>; purpose: Type.TString; }>>; }>; /** * A worked example of the authoring API, given to the generator verbatim. * * Naming the helper functions is not enough: models reliably hallucinate a fluent, Mastra-style API * (`.then(w => w.addStep(...))`, positional `createStep("name", {...})`) that type-checks in their * heads and imports cleanly, so only a shape check at `commit()` catches it. Showing the real shape * is what actually prevents it. */ export declare const API_EXAMPLE = "import { Type } from \"typebox\";\nimport { createStep, createAgentStep, createQuestionnaireStep, createWorkflow } from \"@kimchi-dev/kimchi-workflows\";\n\nconst askSchema = Type.Object({\n topic: Type.String({ description: \"What should we write about?\" }),\n});\nconst draftSchema = Type.Object({ draft: Type.String() });\n\nconst ask = createQuestionnaireStep({ name: \"ask\", output: askSchema });\n\nconst write = createAgentStep({\n name: \"write\",\n input: askSchema,\n output: draftSchema,\n prompt: ({ input }) => `Write a short paragraph about ${input.topic}.`,\n});\n\nconst count = createStep({\n name: \"count\",\n input: draftSchema,\n output: Type.Object({ words: Type.Number() }),\n run: ({ input }) => ({ words: input.draft.split(/\\s+/).length }),\n});\n\nexport default createWorkflow({ name: \"writer\", description: \"Draft a paragraph and count its words\" })\n .then(ask)\n .then(write)\n .then(count)\n .commit();"; declare const createWorkflowWorkflow: import("../../flow/types.ts").WorkflowDefinition; export default createWorkflowWorkflow; //# sourceMappingURL=create.workflow.d.ts.map