/** * Pub/Sub module for Command Frame * Provides topic subscription functionality for iframe apps */ export * from "./types"; export { TopicSubscriber } from "./subscriber"; import { TopicSubscriber } from "./subscriber"; /** * Get or create the singleton TopicSubscriber instance */ export declare function getTopicSubscriber(options?: { origin?: string; debug?: boolean; }): TopicSubscriber; /** * Topics API for iframe apps */ declare const topicsApi: { /** * Subscribe to a topic */ subscribe: (topic: string, callback: (event: import("./types").TopicEvent) => void) => string; /** * Unsubscribe from a topic */ unsubscribe: (topic: string, subscriptionId: string) => boolean; /** * Unsubscribe all callbacks for a topic */ unsubscribeAll: (topic: string) => number; /** * Get available topics */ getTopics: () => Promise; }; export { topicsApi as topics };