/** * GitHub Actions → GitLab CI transformer. * * Takes a GitHub TemplateIR (produced by `GitHubActionsParser.parse`) * and rewrites it into a GitLab TemplateIR (consumed by the existing * `GitLabGenerator` for TS emit, or by `emit-yaml.ts` for direct YAML). * * Per-key provenance is collected in a side-channel `ProvenanceAccumulator` * so the IR stays clean (re-usable by `chant import`). */ import type { TemplateIR } from "@intentius/chant/import/parser"; import type { ProvenanceAccumulator } from "./provenance.js"; import { type ActionMappingRegistry } from "./actions/registry.js"; export interface TransformOptions { /** Source file path for provenance (best-effort, no parse) */ sourceFile?: string; /** Optional registry override for testability */ registry?: ActionMappingRegistry; /** Provenance accumulator to write to */ provenance: ProvenanceAccumulator; } export declare function transformIR(ghIR: TemplateIR, opts: TransformOptions): Promise<{ ir: TemplateIR; stages: string[]; }>; //# sourceMappingURL=transformer.d.ts.map