/** * Iframe OAuth Modal 配置选项 */ export interface IframeOAuthModalOptions { /** OAuth 提供商 ID (如 "google") */ providerId: string; /** OAuth 提供商显示名称 (如 "Google") */ providerName: string; /** 标题模板,支持 {provider} 占位符 */ titleTemplate?: string; /** 消息模板,支持 {provider} 占位符 */ messageTemplate?: string; /** 按钮文案 */ actionButtonText?: string; /** 关闭回调 */ onClose: () => void; } /** * Iframe OAuth Modal 组件 * 在 staging + iframe 环境下,拦截 OAuth 登录,提示用户在新标签页中打开 */ export declare class IframeOAuthModal { private overlay; private options; constructor(options: IframeOAuthModalOptions); /** * 挂载 Modal 到指定容器 */ mount(container?: HTMLElement): void; /** * 销毁 Modal */ destroy(): void; /** * 注入样式 */ private injectStyles; /** * 创建背景装饰层(在毛玻璃之下,用于产生模糊效果) */ private createBackgroundLayer; /** * 获取关闭图标 SVG */ private getCloseIconSvg; /** * 获取箭头图标 SVG(右上箭头) */ private getArrowIconSvg; }