/** * Command Frame Client for iframe communication * Allows the iframe to call functions on the host (top) window via postMessage */ export interface PostMessageRequest { action: string; params?: T; requestId: string; } export interface PostMessageResponse { requestId: string; success: boolean; data?: T; error?: string; } export type MockHandler = (params?: any) => Promise; export declare class CommandFrameClient { private pendingRequests; private defaultTimeout; private origin; private debug; private useGlobalDebug; private mockMode; private mockRegistry; constructor(options?: { timeout?: number; origin?: string; debug?: boolean; mockMode?: boolean; mockRegistry?: Record; }); private isDebugEnabled; call(action: string, params?: TParams, timeout?: number): Promise; private detectContext; private handleMessage; private generateRequestId; destroy(): void; } export declare const commandFrameClient: CommandFrameClient;