/** Preview App 配置 */ interface PreviewAppOptions { /** postMessage bridge 实例 */ bridge: { send: (msg: Record) => void; on: (type: string, handler: (payload: unknown) => void) => () => void; }; /** 点击 Section 事件 */ onSectionClick?: (sectionId: string) => void; /** Hover Section 事件 */ onSectionHover?: (sectionId: string | null) => void; /** 内容渲染完成 */ onContentReady?: () => void; } /** * 创建并挂载 Preview App * 在 preview-host 的 main.ts 中调用 */ export declare function createPreviewApp(selector: string, options: PreviewAppOptions): void; export {};