/**
 * Heal broken prompt patterns in the waitlist extraction workflow.
 *
 * Idempotent: reads the LLM step's prompt, replaces known broken patterns
 * with the correct versions, and writes back only if something changed.
 * Safe to call on every heartbeat cycle — a no-op when the prompt is healthy.
 *
 * Heal patterns:
 *   1. {{conversations._raw}} → {{conversations}} (pre-structured-JSON)
 *   2. Missing conversationDate field instruction (pre-Task-231)
 */
import { getSession } from "../lib/neo4j.js";
export declare const WORKFLOW_NAME = "Waitlist lead extraction";
export interface WaitlistHealParams {
    accountId: string;
}
export interface WaitlistHealResult {
    healed: boolean;
    workflowId: string | null;
}
/**
 * Surgically repair a known-broken prompt pattern in a workflow's LLM step.
 * Only updates if the broken pattern is present; preserves any user
 * customisations made via workflow-update.
 */
export declare function healBrokenPrompt(session: ReturnType<typeof getSession>, workflowId: string): Promise<boolean>;
/**
 * Patch the LLM step prompt to include the conversationDate field.
 * Only updates if the field is missing; preserves user customisations.
 */
export declare function healMissingConversationDate(session: ReturnType<typeof getSession>, workflowId: string): Promise<boolean>;
export declare function waitlistHeal(params: WaitlistHealParams): Promise<WaitlistHealResult>;
//# sourceMappingURL=waitlist-heal.d.ts.map