/** * Adapters bridging the docker-specific DockerParser/DockerGenerator * (which speak DockerIR / ParseResult / GenerateResult) to the core * TemplateParser / TypeScriptGenerator interfaces consumed by * `chant import` (packages/core/src/cli/commands/import.ts). * * The core import pipeline parses content into a TemplateIR (a flat list of * ResourceIR), optionally organizes resources into category files, then asks * the generator to emit GeneratedFile[]. We map each DockerIR to a ResourceIR * keyed by its `kind` (service/volume/network/config/secret/dockerfile) and * reverse the mapping in the generator so DockerGenerator can do the real work. */ import type { TemplateIR, TemplateParser } from "@intentius/chant/import/parser"; import type { GeneratedFile, TypeScriptGenerator } from "@intentius/chant/import/generator"; /** * TemplateParser adapter — wraps DockerParser.parse and maps its DockerIR * entities to a TemplateIR. */ export declare class DockerTemplateParser implements TemplateParser { parse(content: string): TemplateIR; } /** * TypeScriptGenerator adapter — converts a TemplateIR back into DockerIR[] * and delegates to DockerGenerator, returning a single generated file. */ export declare class DockerTemplateGenerator implements TypeScriptGenerator { generate(ir: TemplateIR): GeneratedFile[]; } //# sourceMappingURL=adapter.d.ts.map