/** * Dynamic loader for the durable component → Temporal codegen (#589, epic * #551 §5/§8). The actual `serializeComponent` generator lives in * `@intentius/chant-lexicon-temporal` (`src/component-op/serializer.ts`), * mirroring `Temporal::Op` codegen — core never statically depends on the * Temporal lexicon, the same boundary `../op/activity-registry.ts`'s * `loadActivities`/`loadProfiles` already keep for Op activities. */ import type { DriverComponent } from "./driver.js"; /** Target environment (and env-config) baked into the generated workflow at compile time — see `serializeComponent`'s docstring in the Temporal lexicon for why this can't be resolved at workflow-run time instead. */ export interface ComponentTemporalCodegenOptions { env?: string; vars?: Record; } export interface ComponentTemporalCodegen { /** Serialize one component into `{ "components//workflow.ts": "...", ... }`. */ serializeComponent(component: DriverComponent, options?: ComponentTemporalCodegenOptions): Record; /** Deterministic workflow function name for a component (mirrors the generated `export async function ()`). */ componentWorkflowFnName(componentName: string): string; } /** * Dynamically import the Temporal lexicon's component codegen. Throws a * friendly error if the lexicon is not installed — the durable component * path needs the generator even though discovery/local execution never do. */ export declare function loadComponentTemporalCodegen(): Promise; //# sourceMappingURL=temporal-codegen-loader.d.ts.map