export interface AiflowySDKOptions { /** * 智能体 ID */ botId: string; /** * AIFlowy 服务地址 */ endpoint: string; /** * 浮动入口配置 */ launcher?: { placement?: "bottom-right" | "bottom-left" | "top-right" | "top-left"; label?: string; icon?: string; size?: number; backgroundColor?: string; textColor?: string; }; /** * 聊天窗口配置 */ panel?: { title?: string; width?: number; height?: number; zIndex?: number; }; /** * 主题配置 */ theme?: { borderRadius?: number; dark?: boolean; primaryColor?: string; }; /** * 生命周期事件 */ callbacks?: { onOpen?: () => void; onClose?: () => void; onReady?: () => void; }; } declare class AiflowySDK { private options; private triggerButton; private popupContainer; private iframe; private iframeUrl; private isVisible; private isInitialized; constructor(options: AiflowySDKOptions); init(): void; private injectStyles; private createTriggerButton; private getPositionStyles; private createPopup; private getPopupPositionStyles; private bindEvents; toggle(): void; show(): void; hide(): void; destroy(): void; } declare function initAiflowy(options: AiflowySDKOptions): AiflowySDK; export { AiflowySDK, initAiflowy }; export default AiflowySDK;