/**
 * Event handling system for checkout process
 */
import { CheckoutState, EventType } from "./types";
/**
 * Set checkout state reference for the event module
 */
export declare function setCheckoutState(state: CheckoutState | null): void;
/**
 * Get current checkout state
 */
export declare function getCheckoutState(): CheckoutState | null;
/**
 * Handle incoming postMessage events from the checkout iframe
 */
export declare function handleMessage(event: MessageEvent): void;
/**
 * Emit an event to all registered handlers
 */
export declare function emitEvent(eventType: EventType, data?: Record<string, unknown>): void;
/**
 * Close the checkout iframe
 */
export declare function closeCheckout(shouldEmitEvent?: boolean): void;
/**
 * Set up message listener for iframe communication
 */
export declare function setupMessageListener(): void;
