| 123456789101112131415161718192021222324 |
- interface GenerateInput {
- creativeId: string;
- theme: Record<string, string>;
- storageDir: string;
- }
- /**
- * 扫描用户素材目录,生成 _ad_config_.ts 内容。
- *
- * 关键逻辑:
- * - 必填素材 (config/page/map) → 必定 import
- * - optional 素材 (special) → 存在才 import,不存在则不生成对应字段
- * - 模板自有素材 → import 指向 templates/coloring/assets/
- */
- export declare function generateAdConfig(input: GenerateInput): string;
- /**
- * 创建 symlink:templates/coloring/assets/user/ → storage/creatives/<id>/assets/
- */
- export declare function createAssetsSymlink(creativeId: string, storageDir: string): void;
- /**
- * 清理构建产生的临时文件
- */
- export declare function cleanupBuildArtifacts(): void;
- export {};
- //# sourceMappingURL=configGenerator.d.ts.map
|