import type { CreateSessionOptions, IEventEmitter, SessionBusinessConfig } from './types';
import type { IAgentModule, ISession, ISessionModule } from '@blueking/chat-helper';
/**
 * 会话业务管理器
 *
 * 职责：
 * - 封装小鲸组件的会话业务流程
 * - 使用 AG-UI SDK 的 session 模块
 * - 处理临时会话、权限检查等小鲸特有逻辑
 * - 不管理数据，只编排业务流程
 */
export declare class SessionBusinessManager {
    private agentModule;
    private config;
    private eventEmitter;
    private sessionModule;
    /**
     * 发射事件（内部方法）
     */
    private emit;
    constructor(sessionModule: ISessionModule, agentModule?: IAgentModule | null, eventEmitter?: IEventEmitter | null, config?: SessionBusinessConfig);
    get currentSession(): import("vue").Ref<{
        anchorPathResources?: unknown;
        comment?: string;
        createdAt?: string;
        isTemporary?: boolean;
        labels?: string[];
        model?: string;
        rate?: number;
        sessionCode: string;
        sessionContentCount?: number;
        sessionName: string;
        tools?: unknown[];
        updatedAt?: string;
        roleInfo?: {
            collectionId: number;
            collectionName: string;
            content: ({
                activityType: import("@blueking/chat-helper").ActivityType;
                content: {
                    nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                    task_id: number;
                    task_name: string;
                    task_outputs: string[];
                    task_state: import("@blueking/chat-helper").FlowTaskState;
                } | {
                    content: string;
                    referenceDocument: {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                } | {
                    name: string;
                    originFileUrl?: string;
                    url: string;
                }[];
                role: import("@blueking/chat-helper").MessageRole.Activity;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content?: string;
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.Assistant;
                toolCalls?: {
                    function: {
                        arguments: string;
                        description?: string;
                        mcpName?: string;
                        name: string;
                    };
                    id: string;
                    type: import("@blueking/chat-helper").MessageType.Function;
                }[];
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Developer;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Guide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Hidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Info;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Pause;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Placeholder;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string[];
                duration?: number;
                role: import("@blueking/chat-helper").MessageRole.Reasoning;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.System;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                duration?: number;
                error?: string;
                role: import("@blueking/chat-helper").MessageRole.Tool;
                toolCallId: string;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string | ({
                    data?: string;
                    filename?: string;
                    id?: string;
                    mimeType: string;
                    type: import("@blueking/chat-helper").MessageType.Binary;
                    url?: string;
                } | {
                    text: string;
                    type: import("@blueking/chat-helper").MessageType.Text;
                })[];
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.User;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            })[];
            variables: {
                name: string;
                value: string | ({
                    activityType: import("@blueking/chat-helper").ActivityType;
                    content: {
                        nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                        task_id: number;
                        task_name: string;
                        task_outputs: string[];
                        task_state: import("@blueking/chat-helper").FlowTaskState;
                    } | {
                        content: string;
                        referenceDocument: {
                            name: string;
                            originFileUrl?: string;
                            url: string;
                        }[];
                    } | {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                    role: import("@blueking/chat-helper").MessageRole.Activity;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content?: string;
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.Assistant;
                    toolCalls?: {
                        function: {
                            arguments: string;
                            description?: string;
                            mcpName?: string;
                            name: string;
                        };
                        id: string;
                        type: import("@blueking/chat-helper").MessageType.Function;
                    }[];
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Developer;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Guide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Hidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Info;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Pause;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Placeholder;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string[];
                    duration?: number;
                    role: import("@blueking/chat-helper").MessageRole.Reasoning;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.System;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    duration?: number;
                    error?: string;
                    role: import("@blueking/chat-helper").MessageRole.Tool;
                    toolCallId: string;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string | ({
                        data?: string;
                        filename?: string;
                        id?: string;
                        mimeType: string;
                        type: import("@blueking/chat-helper").MessageType.Binary;
                        url?: string;
                    } | {
                        text: string;
                        type: import("@blueking/chat-helper").MessageType.Text;
                    })[];
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.User;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                })[];
            }[];
        };
        sessionProperty?: {
            isAutoCalcPrompt?: boolean;
            isAutoClear?: boolean;
        };
    }, ISession<unknown, unknown> | {
        anchorPathResources?: unknown;
        comment?: string;
        createdAt?: string;
        isTemporary?: boolean;
        labels?: string[];
        model?: string;
        rate?: number;
        sessionCode: string;
        sessionContentCount?: number;
        sessionName: string;
        tools?: unknown[];
        updatedAt?: string;
        roleInfo?: {
            collectionId: number;
            collectionName: string;
            content: ({
                activityType: import("@blueking/chat-helper").ActivityType;
                content: {
                    nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                    task_id: number;
                    task_name: string;
                    task_outputs: string[];
                    task_state: import("@blueking/chat-helper").FlowTaskState;
                } | {
                    content: string;
                    referenceDocument: {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                } | {
                    name: string;
                    originFileUrl?: string;
                    url: string;
                }[];
                role: import("@blueking/chat-helper").MessageRole.Activity;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content?: string;
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.Assistant;
                toolCalls?: {
                    function: {
                        arguments: string;
                        description?: string;
                        mcpName?: string;
                        name: string;
                    };
                    id: string;
                    type: import("@blueking/chat-helper").MessageType.Function;
                }[];
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Developer;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Guide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Hidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Info;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Pause;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Placeholder;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string[];
                duration?: number;
                role: import("@blueking/chat-helper").MessageRole.Reasoning;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.System;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                duration?: number;
                error?: string;
                role: import("@blueking/chat-helper").MessageRole.Tool;
                toolCallId: string;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string | ({
                    data?: string;
                    filename?: string;
                    id?: string;
                    mimeType: string;
                    type: import("@blueking/chat-helper").MessageType.Binary;
                    url?: string;
                } | {
                    text: string;
                    type: import("@blueking/chat-helper").MessageType.Text;
                })[];
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.User;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            })[];
            variables: {
                name: string;
                value: string | ({
                    activityType: import("@blueking/chat-helper").ActivityType;
                    content: {
                        nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                        task_id: number;
                        task_name: string;
                        task_outputs: string[];
                        task_state: import("@blueking/chat-helper").FlowTaskState;
                    } | {
                        content: string;
                        referenceDocument: {
                            name: string;
                            originFileUrl?: string;
                            url: string;
                        }[];
                    } | {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                    role: import("@blueking/chat-helper").MessageRole.Activity;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content?: string;
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.Assistant;
                    toolCalls?: {
                        function: {
                            arguments: string;
                            description?: string;
                            mcpName?: string;
                            name: string;
                        };
                        id: string;
                        type: import("@blueking/chat-helper").MessageType.Function;
                    }[];
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Developer;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Guide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Hidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Info;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Pause;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Placeholder;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string[];
                    duration?: number;
                    role: import("@blueking/chat-helper").MessageRole.Reasoning;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.System;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    duration?: number;
                    error?: string;
                    role: import("@blueking/chat-helper").MessageRole.Tool;
                    toolCallId: string;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string | ({
                        data?: string;
                        filename?: string;
                        id?: string;
                        mimeType: string;
                        type: import("@blueking/chat-helper").MessageType.Binary;
                        url?: string;
                    } | {
                        text: string;
                        type: import("@blueking/chat-helper").MessageType.Text;
                    })[];
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.User;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                })[];
            }[];
        };
        sessionProperty?: {
            isAutoCalcPrompt?: boolean;
            isAutoClear?: boolean;
        };
    }>;
    get isCreateLoading(): import("vue").Ref<boolean, boolean>;
    get isCurrentLoading(): import("vue").Ref<boolean, boolean>;
    get isDeleteLoading(): import("vue").Ref<boolean, boolean>;
    get isListLoading(): import("vue").Ref<boolean, boolean>;
    get isUpdateLoading(): import("vue").Ref<boolean, boolean>;
    /**
     * 暴露 AG-UI SDK 的响应式状态
     */
    get sessionList(): import("vue").Ref<{
        anchorPathResources?: unknown;
        comment?: string;
        createdAt?: string;
        isTemporary?: boolean;
        labels?: string[];
        model?: string;
        rate?: number;
        sessionCode: string;
        sessionContentCount?: number;
        sessionName: string;
        tools?: unknown[];
        updatedAt?: string;
        roleInfo?: {
            collectionId: number;
            collectionName: string;
            content: ({
                activityType: import("@blueking/chat-helper").ActivityType;
                content: {
                    nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                    task_id: number;
                    task_name: string;
                    task_outputs: string[];
                    task_state: import("@blueking/chat-helper").FlowTaskState;
                } | {
                    content: string;
                    referenceDocument: {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                } | {
                    name: string;
                    originFileUrl?: string;
                    url: string;
                }[];
                role: import("@blueking/chat-helper").MessageRole.Activity;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content?: string;
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.Assistant;
                toolCalls?: {
                    function: {
                        arguments: string;
                        description?: string;
                        mcpName?: string;
                        name: string;
                    };
                    id: string;
                    type: import("@blueking/chat-helper").MessageType.Function;
                }[];
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Developer;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Guide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Hidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Info;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Pause;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Placeholder;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string[];
                duration?: number;
                role: import("@blueking/chat-helper").MessageRole.Reasoning;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.System;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                duration?: number;
                error?: string;
                role: import("@blueking/chat-helper").MessageRole.Tool;
                toolCallId: string;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string | ({
                    data?: string;
                    filename?: string;
                    id?: string;
                    mimeType: string;
                    type: import("@blueking/chat-helper").MessageType.Binary;
                    url?: string;
                } | {
                    text: string;
                    type: import("@blueking/chat-helper").MessageType.Text;
                })[];
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.User;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            })[];
            variables: {
                name: string;
                value: string | ({
                    activityType: import("@blueking/chat-helper").ActivityType;
                    content: {
                        nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                        task_id: number;
                        task_name: string;
                        task_outputs: string[];
                        task_state: import("@blueking/chat-helper").FlowTaskState;
                    } | {
                        content: string;
                        referenceDocument: {
                            name: string;
                            originFileUrl?: string;
                            url: string;
                        }[];
                    } | {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                    role: import("@blueking/chat-helper").MessageRole.Activity;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content?: string;
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.Assistant;
                    toolCalls?: {
                        function: {
                            arguments: string;
                            description?: string;
                            mcpName?: string;
                            name: string;
                        };
                        id: string;
                        type: import("@blueking/chat-helper").MessageType.Function;
                    }[];
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Developer;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Guide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Hidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Info;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Pause;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Placeholder;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string[];
                    duration?: number;
                    role: import("@blueking/chat-helper").MessageRole.Reasoning;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.System;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    duration?: number;
                    error?: string;
                    role: import("@blueking/chat-helper").MessageRole.Tool;
                    toolCallId: string;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string | ({
                        data?: string;
                        filename?: string;
                        id?: string;
                        mimeType: string;
                        type: import("@blueking/chat-helper").MessageType.Binary;
                        url?: string;
                    } | {
                        text: string;
                        type: import("@blueking/chat-helper").MessageType.Text;
                    })[];
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.User;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                })[];
            }[];
        };
        sessionProperty?: {
            isAutoCalcPrompt?: boolean;
            isAutoClear?: boolean;
        };
    }[], ISession<unknown, unknown>[] | {
        anchorPathResources?: unknown;
        comment?: string;
        createdAt?: string;
        isTemporary?: boolean;
        labels?: string[];
        model?: string;
        rate?: number;
        sessionCode: string;
        sessionContentCount?: number;
        sessionName: string;
        tools?: unknown[];
        updatedAt?: string;
        roleInfo?: {
            collectionId: number;
            collectionName: string;
            content: ({
                activityType: import("@blueking/chat-helper").ActivityType;
                content: {
                    nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                    task_id: number;
                    task_name: string;
                    task_outputs: string[];
                    task_state: import("@blueking/chat-helper").FlowTaskState;
                } | {
                    content: string;
                    referenceDocument: {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                } | {
                    name: string;
                    originFileUrl?: string;
                    url: string;
                }[];
                role: import("@blueking/chat-helper").MessageRole.Activity;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content?: string;
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.Assistant;
                toolCalls?: {
                    function: {
                        arguments: string;
                        description?: string;
                        mcpName?: string;
                        name: string;
                    };
                    id: string;
                    type: import("@blueking/chat-helper").MessageType.Function;
                }[];
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Developer;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Guide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Hidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Info;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Pause;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.Placeholder;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string[];
                duration?: number;
                role: import("@blueking/chat-helper").MessageRole.Reasoning;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.System;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string;
                duration?: number;
                error?: string;
                role: import("@blueking/chat-helper").MessageRole.Tool;
                toolCallId: string;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            } | {
                content: string | ({
                    data?: string;
                    filename?: string;
                    id?: string;
                    mimeType: string;
                    type: import("@blueking/chat-helper").MessageType.Binary;
                    url?: string;
                } | {
                    text: string;
                    type: import("@blueking/chat-helper").MessageType.Text;
                })[];
                property?: {
                    [x: string]: unknown;
                    extra?: {
                        [x: string]: unknown;
                        cite?: string | {
                            data: {
                                key: string;
                                value: string;
                            }[];
                            title: string;
                            type: string;
                        };
                        command?: string;
                        context?: Array<Record<string, unknown>>;
                        resources?: Array<Record<string, unknown>>;
                    };
                };
                role: import("@blueking/chat-helper").MessageRole.User;
                id?: string;
                messageId?: string;
                name?: string;
                sessionCode?: string;
                status: import("@blueking/chat-helper").MessageStatus;
            })[];
            variables: {
                name: string;
                value: string | ({
                    activityType: import("@blueking/chat-helper").ActivityType;
                    content: {
                        nodes: Record<string, import("@blueking/chat-helper").IFlowAgentNode>;
                        task_id: number;
                        task_name: string;
                        task_outputs: string[];
                        task_state: import("@blueking/chat-helper").FlowTaskState;
                    } | {
                        content: string;
                        referenceDocument: {
                            name: string;
                            originFileUrl?: string;
                            url: string;
                        }[];
                    } | {
                        name: string;
                        originFileUrl?: string;
                        url: string;
                    }[];
                    role: import("@blueking/chat-helper").MessageRole.Activity;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content?: string;
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.Assistant;
                    toolCalls?: {
                        function: {
                            arguments: string;
                            description?: string;
                            mcpName?: string;
                            name: string;
                        };
                        id: string;
                        type: import("@blueking/chat-helper").MessageType.Function;
                    }[];
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Developer;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Guide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Hidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.HiddenUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Info;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Pause;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.Placeholder;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string[];
                    duration?: number;
                    role: import("@blueking/chat-helper").MessageRole.Reasoning;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.System;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateAssistant;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateGuide;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateHidden;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateSystem;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    role: import("@blueking/chat-helper").MessageRole.TemplateUser;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string;
                    duration?: number;
                    error?: string;
                    role: import("@blueking/chat-helper").MessageRole.Tool;
                    toolCallId: string;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                } | {
                    content: string | ({
                        data?: string;
                        filename?: string;
                        id?: string;
                        mimeType: string;
                        type: import("@blueking/chat-helper").MessageType.Binary;
                        url?: string;
                    } | {
                        text: string;
                        type: import("@blueking/chat-helper").MessageType.Text;
                    })[];
                    property?: {
                        [x: string]: unknown;
                        extra?: {
                            [x: string]: unknown;
                            cite?: string | {
                                data: {
                                    key: string;
                                    value: string;
                                }[];
                                title: string;
                                type: string;
                            };
                            command?: string;
                            context?: Array<Record<string, unknown>>;
                            resources?: Array<Record<string, unknown>>;
                        };
                    };
                    role: import("@blueking/chat-helper").MessageRole.User;
                    id?: string;
                    messageId?: string;
                    name?: string;
                    sessionCode?: string;
                    status: import("@blueking/chat-helper").MessageStatus;
                })[];
            }[];
        };
        sessionProperty?: {
            isAutoCalcPrompt?: boolean;
            isAutoClear?: boolean;
        };
    }[]>;
    /**
     * 创建新会话（便捷方法）
     *
     * 提供给 UI 组件直接调用的简洁 API，无需传递任何参数。
     * 自动生成会话编码，使用默认会话名称。
     *
     * @returns Promise<void>
     * @throws Error 当会话功能被禁用或创建失败时
     *
     * @example
     * ```ts
     * // 在组件中使用
     * await sessionBusinessManager.createNewSession();
     * ```
     */
    createNewSession(): Promise<ISession | null>;
    /**
     * 创建新会话
     * @param options 创建选项
     */
    createSession(options?: CreateSessionOptions): Promise<void>;
    /**
     * 删除会话
     * @param sessionCode 会话编码
     */
    deleteSession(sessionCode: string): Promise<void>;
    /**
     * 获取单个会话
     * @param sessionCode 会话编码
     */
    getSession(sessionCode: string): Promise<void>;
    /**
     * 加载最近会话（初始化入口）
     *
     * 初始化逻辑优先级：
     * 1. 如果指定了 initialSessionCode，切换到该会话
     * 2. 如果会话列表不为空：
     *    - 通过 sessionContentCount 判断最近会话是否有内容（alwaysCreateNewSession 为 true 时跳过判断，直接新建）
     *    - 有内容 → 直接创建新会话（不切换，避免加载消息）
     *    - 无内容 → 切换到该会话（跳过消息加载）
     * 3. 如果会话列表为空，创建新会话
     *
     * @param options.skipLoadSessions 是否跳过加载会话列表（当 useChatBootstrap 已预加载时设为 true）
     * @param options.alwaysCreateNewSession 是否始终创建新会话（优先级高于 config 中的配置）
     */
    loadRecentSession(options?: {
        skipLoadSessions?: boolean;
        alwaysCreateNewSession?: boolean;
    }): Promise<void>;
    /**
     * 加载会话列表
     */
    loadSessions(): Promise<void>;
    /**
     * 切换会话
     * @param sessionCode 会话编码
     * @param options 选项
     * @param options.loadMessages 是否加载消息列表，默认 true
     */
    switchSession(sessionCode: string, options?: {
        loadMessages?: boolean;
    }): Promise<void>;
    /**
     * 更新会话名称
     * @param sessionCode 会话编码
     * @param name 新名称
     */
    updateSessionName(sessionCode: string, name: string): Promise<void>;
}
//# sourceMappingURL=session-business-manager.d.ts.map