import type { EmailRenderedPreviewResponse } from '@/services/api/communicationsApi';
interface UseRenderedPreviewParams {
    templateId: string | undefined;
    languageCode: string;
    subject: string;
    htmlBody: string;
    textBody: string | null;
    darkMode: boolean;
    debounceMs?: number;
}
interface UseRenderedPreviewResult {
    preview: EmailRenderedPreviewResponse | null;
    loading: boolean;
    error: string | null;
}
/**
 * Drives the live preview pane: debounces editor changes, aborts in-flight requests
 * when newer content arrives, and surfaces the latest rendered subject + HTML produced
 * by the same backend pipeline used for real delivery.
 */
export declare function useRenderedPreview({ templateId, languageCode, subject, htmlBody, textBody, darkMode, debounceMs, }: UseRenderedPreviewParams): UseRenderedPreviewResult;
export {};
//# sourceMappingURL=useRenderedPreview.d.ts.map