import { POST_MESSAGE_SOURCE } from "../constants.js";
import { EditorState } from "../store.js";
import { MessageTypes } from "./actions.js";
export type PostMessageAPIMessage<K extends keyof MessageTypes> = {
    action: K;
    data: MessageTypes[K];
    source: typeof POST_MESSAGE_SOURCE;
};
export type StoreSyncMessage = {
    state: EditorState;
    source: typeof POST_MESSAGE_SOURCE;
};
