type Action = 'handleInit' | 'setSandboxOverlaid' | 'showContentGenerationModal' | 'showPageSettingsModal' | 'undoLastGeneration' | 'handleLinkClick';
type ActionData = {
    handleInit: object;
    setSandboxOverlaid: {
        isOverlaid: boolean;
    };
    showContentGenerationModal: object;
    showPageSettingsModal: object;
    undoLastGeneration: object;
    handleLinkClick: {
        to: string;
        target?: string;
    };
};
/**
 * Post a message to the parent window
 * @param action The action to post
 * @param data The data to post
 */
export declare function postMessageToParent<T extends Action>(action: T, data?: ActionData[T]): void;
export {};
