import { ActionMessageTypes, EventMessageTypes } from "../common/types/actions.js";
export declare function sendEventPostMessage<K extends keyof EventMessageTypes>(action: K, data: EventMessageTypes[K]): void;
export declare function listenPostMessageActions<K extends keyof ActionMessageTypes>(action: K, callback: (data: ActionMessageTypes[K]) => void): () => void;
export declare function useInternalPostMessageAPIListener<K extends keyof ActionMessageTypes>(action: K, callback: (data: ActionMessageTypes[K]) => void): void;
