import { SendingPreviewStatus, State, ContentValidation, EmailEditorSettings, EmailTheme, EmailEditorUrls } from './types'; export declare function togglePreviewModal(isOpen: boolean): { readonly type: "CHANGE_PREVIEW_STATE"; readonly state: Partial; }; export declare function updateSendPreviewEmail(toEmail: string): { readonly type: "CHANGE_PREVIEW_STATE"; readonly state: Partial; }; export declare const setEmailPost: (postId: number | string, postType: string) => ({ dispatch }: { dispatch: any; }) => Promise; /** * Invalidates the personalization tags cache to force a refetch. * Call this when the tags need to be refreshed (e.g., after changing automation triggers). */ export declare const invalidatePersonalizationTagsCache: () => ({ registry }: { registry: any; }) => Promise; export declare function setEmailPostType(postType: string): { readonly type: "SET_EMAIL_POST"; readonly state: Partial; }; export declare const setTemplateToPost: (templateSlug: any) => ({ registry }: { registry: any; }) => Promise; export declare function setTemplateSelected(): { readonly type: "SET_TEMPLATE_SELECTED"; }; export declare function requestSendingNewsletterPreview(email: string): Generator<{ type: string; request: import("@wordpress/api-fetch/build-types/types").APIFetchOptions; } | { readonly type: "CHANGE_PREVIEW_STATE"; readonly state: Partial; } | { type: string; state: { sendingPreviewStatus: SendingPreviewStatus; isSendingPreviewEmail: boolean; errorMessage?: undefined; }; } | { type: string; state: { sendingPreviewStatus: SendingPreviewStatus; isSendingPreviewEmail: boolean; errorMessage: string; }; }, void, unknown>; export declare function setContentValidation(validation: ContentValidation | undefined): { readonly type: "SET_CONTENT_VALIDATION"; readonly validation: ContentValidation; }; export declare function setEditorSettings(editorSettings: EmailEditorSettings): { readonly type: "SET_EDITOR_SETTINGS"; readonly editorSettings: EmailEditorSettings; }; export declare function setEditorTheme(theme: EmailTheme): { readonly type: "SET_EDITOR_THEME"; readonly theme: EmailTheme; }; export declare function setEditorUrls(urls: EmailEditorUrls): { readonly type: "SET_EDITOR_URLS"; readonly urls: EmailEditorUrls; }; export declare function setEditorConfig(config: { editorSettings: EmailEditorSettings; theme: EmailTheme; urls: EmailEditorUrls; userEmail: string; globalStylesPostId?: number | null; }): { readonly type: "SET_EDITOR_CONFIG"; readonly config: { editorSettings: EmailEditorSettings; theme: EmailTheme; urls: EmailEditorUrls; userEmail: string; globalStylesPostId?: number | null; }; };