export interface AugmentPromptWithContinuityInput { /** The next scene's prompt to augment. Returned unchanged when nothing applies. */ nextPrompt: string; /** * Path to the previous scene's already-rendered keyframe IMAGE. Only used for * the Gemini path, and only when it exists on disk and has an image extension. */ priorReferenceImagePath?: string; /** * Deterministic continuity descriptors (e.g. story-bible cast/setting/prop * lines). Used as the Gemini fallback source and when no image is available. */ priorDescriptors?: string[]; /** Injected fetch (tests). Defaults to global fetch via the key pool. */ fetcher?: typeof fetch; /** Env used to resolve the Gemini key. Defaults to process.env. */ env?: NodeJS.ProcessEnv; } export interface AugmentPromptWithContinuityResult { prompt: string; applied: boolean; source: 'gemini' | 'deterministic' | 'none'; } /** * Opt-in continuity loop: enriches `nextPrompt` with a concise continuity cue * derived from the prior scene's rendered keyframe. * * - Gemini path: when a key is configured AND `priorReferenceImagePath` exists * on disk as an image, one structured Gemini call extracts comma-separated * style/lighting/subject/setting cues and a `Continuity: ` clause is * prepended. source: 'gemini'. * - Deterministic path: otherwise, when `priorDescriptors` are supplied, a * `Continuity: ` clause is prepended. source: 'deterministic'. * - Otherwise the prompt is returned unchanged. source: 'none'. * * NEVER throws on a Gemini failure / network error / parse error: it falls back * to the deterministic path (if descriptors exist) or to 'none'. */ export declare function augmentPromptWithContinuity(input: AugmentPromptWithContinuityInput): Promise; //# sourceMappingURL=gemini-continuity.d.ts.map