import type { BrandBundle, AssetType } from "./types.js"; /** * Rewrite a brief into a target-model dialect-appropriate prompt. * This is the central prompt engineering module — it encodes the "dialect rules" * from docs/research/SYNTHESIS.md § Prompt Engineering Principles. * * Rules applied: * - Flux / Imagen / gpt-image: prose narrative, no tag salad, no negative_prompt field * - SD 1.5 / SDXL: tag-salad, negative prompt allowed * - Ideogram: prose + quoted wordmark * - Recraft: prose + style_id reference * - MJ: prose + --flags * * For text — per-model ceiling drives the decision, not a blanket rule: * - 0 words → "no text, no labels, no wordmark" * - text.length ≤ model.text_ceiling_chars → "WORDMARK" in double quotes * - text.length > ceiling → drop from prompt with warning, composite later * * Per-model ceilings are verified Apr 2026 (memory: model_capabilities_apr_2026.md). * Strong-text models (gpt-image-2, Nano Banana Pro, gpt-image-1.5, Ideogram 3, * Nano Banana 2, Flux 2 family) handle multi-word and even paragraph-length text; * SDXL / Flux Schnell / SD 1.5 cannot render legible text at all. */ export interface RewriteInput { brief: string; asset_type: AssetType; target_model: string; brand_bundle?: BrandBundle; text_content?: string; transparency_required: boolean; vector_required: boolean; } export interface RewriteOutput { prompt: string; negative_prompt?: string; warnings: string[]; } export declare function rewrite(input: RewriteInput): RewriteOutput; //# sourceMappingURL=rewriter.d.ts.map