import { BlogPost, Resource, ResourceStats, Contact, Booking, BookingSlot, AnalyticsData, ChatMessage, ChatResponse, AdminAuthResponse, ApiResponse, LarkDoc, LarkDocSource, LarkContactUser, LarkApprovalDef, LarkBitableTable, LarkDriveFile, UUMitAgentCard, UUMitChatResult, UUMitSearchResult, ProfileData, BlogTagsData, ServicesMatchRequest, ServicesMatchResponse, Skill, SkillStats, Project, ProjectStats, AdminProject, AdminProjectListResponse, AgentChatRequest, AgentChatResponse, BijinoteNote, BijinoteTopic, BijinoteSyncRecord, PersonalMemory } from '../types';

export type { BlogPost, Resource, ResourceStats, Contact, Booking, BookingSlot, AnalyticsData, ChatMessage, ChatResponse, AdminAuthResponse, ApiResponse, LarkDoc, LarkDocSource, LarkContactUser, LarkApprovalDef, LarkBitableTable, LarkDriveFile, BijinoteNote, BijinoteTopic, BijinoteSyncRecord, PersonalMemory, };
/** 初始化 API 客户端，设置站点名前缀（用于 localStorage key 隔离） */
export declare function initAPIClient(siteName: string): void;
export declare function getAdminToken(): string | null;
export declare function setAdminToken(token: string): void;
export declare function clearAdminToken(): void;
/** 检查当前是否为演示模式 */
export declare function isDemoMode(): boolean;
/** 健康检查 */
export declare function healthCheck(): Promise<{
    status: string;
    model: string;
    apiConfigured: boolean;
}>;
/** AI 聊天 */
export declare function sendChat(messages: ChatMessage[]): Promise<ChatResponse>;
/** 获取技能列表（含 _stats） */
export declare function getSkills(category?: string): Promise<{
    items: Skill[];
    _stats: SkillStats;
}>;
/** 获取项目列表（含 _stats） */
export declare function getProjects(): Promise<{
    items: Project[];
    _stats: ProjectStats;
}>;
/** 获取公开博客列表 */
export declare function getBlogs(params?: {
    category?: string;
    tag?: string;
    search?: string;
}): Promise<BlogPost[]>;
/** 获取博客详情 */
export declare function getBlogDetail(id: string): Promise<BlogPost & {
    htmlContent: string;
}>;
/** RSS 订阅地址 */
export declare function getBlogRssUrl(): string;
/** 获取数字名片/能力画像 */
export declare function getProfile(lang?: string): Promise<ProfileData>;
/** 获取博客标签和分类汇总 */
export declare function getBlogTags(): Promise<BlogTagsData>;
/** AI 能力匹配评估 */
export declare function matchServices(data: ServicesMatchRequest): Promise<ServicesMatchResponse>;
/** 获取资源列表 */
export declare function getResources(params?: {
    category?: string;
    type?: string;
    search?: string;
}): Promise<Resource[]>;
/** 下载资源 / 联系获取 */
export declare function downloadResource(id: string): Promise<{
    action: 'download' | 'contact';
    message: string;
    downloads?: number;
}>;
/** 资源统计 */
export declare function getResourceStats(): Promise<ResourceStats>;
/** 提交项目咨询 */
export declare function submitContact(data: {
    name: string;
    email: string;
    phone?: string;
    projectType?: string;
    budget?: string;
    timeline?: string;
    message: string;
}): Promise<ApiResponse>;
/** 获取可用预约时间段 */
export declare function getBookingSlots(): Promise<BookingSlot[]>;
/** 创建预约 */
export declare function createBooking(data: {
    name: string;
    email: string;
    phone?: string;
    slot: string;
    topic?: string;
    message?: string;
}): Promise<{
    success: boolean;
    booking: Booking;
    message: string;
}>;
/** 追踪页面浏览 */
export declare function trackPage(page: string, referrer?: string): Promise<void>;
/** 管理员登录 */
export declare function adminLogin(password: string, username?: string): Promise<AdminAuthResponse & {
    isDemo?: boolean;
}>;
/** 管理员登出 */
export declare function adminLogout(): Promise<void>;
/** 验证管理员 Token */
export declare function verifyAdminToken(): Promise<{
    valid: boolean;
    isDemo: boolean;
}>;
/** 管理员获取全部博客（不截断） */
export declare function adminGetBlogs(): Promise<BlogPost[]>;
/** 管理员创建/更新博客 */
export declare function adminSaveBlog(data: Partial<BlogPost> & {
    title: string;
    content: string;
}): Promise<BlogPost>;
/** 管理员删除博客 */
export declare function adminDeleteBlog(id: string): Promise<void>;
/** 管理员创建/更新资源 */
export declare function adminSaveResource(data: Partial<Resource> & {
    title: string;
}): Promise<Resource>;
/** 管理员删除资源 */
export declare function adminDeleteResource(id: string): Promise<void>;
export declare function adminGetProjects(params?: {
    status?: string;
    search?: string;
    category?: string;
    source?: string;
    limit?: number;
    offset?: number;
}): Promise<AdminProjectListResponse>;
export declare function adminSaveProject(data: Partial<AdminProject> & {
    title: string;
}): Promise<AdminProject>;
export declare function adminDeleteProject(id: string): Promise<void>;
export declare function adminUpdateProjectStatus(id: string, status: 'active' | 'hidden'): Promise<void>;
export declare function adminBatchProjects(ids: string[], action: string, value?: string): Promise<any>;
export declare function adminGetProjectStats(): Promise<{
    total: number;
    by_source: Record<string, number>;
    by_status: Record<string, number>;
}>;
/** 管理员获取所有咨询 */
export declare function adminGetContacts(): Promise<Contact[]>;
/** 管理员更新咨询状态 */
export declare function adminUpdateContact(id: string, data: Partial<Pick<Contact, 'status'>>): Promise<Contact>;
/** 管理员获取所有预约 */
export declare function adminGetBookings(): Promise<Booking[]>;
/** 管理员更新预约状态 */
export declare function adminUpdateBooking(id: string, data: Partial<Pick<Booking, 'status'>>): Promise<Booking>;
/** 管理员获取分析数据 */
export declare function adminGetAnalytics(): Promise<AnalyticsData>;
/** 检查 OAuth 授权状态 */
export declare function larkGetOAuthStatus(): Promise<{
    authorized: boolean;
}>;
/** 获取 OAuth 授权 URL */
export declare function larkGetOAuthUrl(): Promise<{
    authorized: boolean;
    url: string | null;
    state: string;
}>;
/** 导入文档（从飞书链接） */
export declare function larkImportDoc(docUrl: string, folderToken?: string): Promise<{
    ticket: string;
    file_extension: string;
    file_name: string;
}>;
/** 查询导入结果 */
export declare function larkGetImportResult(ticket: string): Promise<{
    status: string;
    token?: string;
    name?: string;
    url?: string;
}>;
/** 列出飞书文档 */
export declare function larkListDocs(params?: {
    source?: string;
    folder_token?: string;
    space_id?: string;
}): Promise<{
    docs: LarkDoc[];
    sources: LarkDocSource[];
    oauth_required?: boolean;
    oauth_error?: string;
}>;
/** 同步文档到博客 */
export declare function larkSyncDoc(data: {
    doc_token: string;
    title?: string;
    category?: string;
    tags?: string[];
    summary?: string;
    publish_status?: string;
    blog_id?: string;
}): Promise<BlogPost>;
/** 批量同步文档 */
export declare function larkBatchSyncDocs(data: {
    docs: Array<{
        doc_token: string;
        title?: string;
        category?: string;
        tags?: string[];
    }>;
    base_category?: string;
}): Promise<{
    synced: Array<{
        doc_token: string;
        blog_id: string;
        title: string;
    }>;
    failed: string[];
}>;
/** 获取文档来源配置 */
export declare function larkGetDocSources(): Promise<LarkDocSource[]>;
/** 添加文档来源 */
export declare function larkAddDocSource(data: {
    type: 'folder' | 'wiki_space' | 'root';
    token: string;
    name: string;
}): Promise<{
    id: number;
}>;
/** 删除文档来源 */
export declare function larkDeleteDocSource(id: number): Promise<void>;
/** 检查博客同步状态 */
export declare function larkGetSyncStatus(blogId: string): Promise<{
    synced: boolean;
    lark_doc_id?: string;
}>;
/** 更新文档权限（知识库/博客发布控制） */
export declare function larkUpdateDocPermissions(docToken: string, data: {
    knowledge_base_scope?: number;
    allow_blog_publish?: boolean;
    publish_status?: string;
}): Promise<{
    synced: boolean;
    blogId: string | null;
    publish_status: string;
    knowledgeBaseScope: number;
    allowBlogPublish: boolean;
}>;
/** 获取已同步文档的完整详情（只读查看） */
export declare function larkGetDocDetail(docToken: string): Promise<BlogPost & {
    htmlContent: string;
}>;
/** 管理端知识库 AI 对话 */
export declare function adminKnowledgeChat(messages: ChatMessage[], sessionId?: string): Promise<ChatResponse & {
    session_id: string;
}>;
/** 获取知识库对话会话列表 */
export declare function adminKnowledgeChatSessions(page?: number, pageSize?: number): Promise<{
    sessions: Array<{
        id: string;
        created_at: string;
        updated_at: string;
        message_count: number;
        summary: string;
    }>;
    total: number;
    page: number;
    pageSize: number;
}>;
/** 获取知识库对话详情 */
export declare function adminKnowledgeChatSessionDetail(sessionId: string): Promise<{
    id: string;
    messages: Array<{
        id: number;
        role: string;
        content: string;
        created_at: string;
    }>;
}>;
/** 个人助手 AI 对话 */
export declare function meChat(messages: ChatMessage[], sessionId?: string): Promise<ChatResponse & {
    session_id: string;
    memory_refs: number[];
}>;
/** 个人助手会话列表 */
export declare function meChatSessions(page?: number, pageSize?: number): Promise<{
    sessions: Array<{
        id: string;
        created_at: string;
        updated_at: string;
        message_count: number;
        summary: string;
    }>;
    total: number;
    page: number;
    pageSize: number;
}>;
/** 个人助手会话详情 */
export declare function meChatSessionDetail(sessionId: string): Promise<{
    id: string;
    messages: Array<{
        id: number;
        role: string;
        content: string;
        created_at: string;
        memory_refs: number[];
    }>;
}>;
/** 记忆列表 */
export declare function meMemories(params: {
    category?: string;
    visibility?: string;
    search?: string;
    limit?: number;
    offset?: number;
}): Promise<{
    items: PersonalMemory[];
    total: number;
}>;
/** 创建记忆 */
export declare function meCreateMemory(data: {
    title: string;
    content: string;
    category: string;
    visibility?: string;
    tags?: string[];
    importance?: number;
    source?: string;
}): Promise<{
    id: number;
    message: string;
}>;
/** 更新记忆 */
export declare function meUpdateMemory(id: number, data: Partial<{
    title: string;
    content: string;
    category: string;
    visibility: string;
    tags: string[];
    importance: number;
}>): Promise<{
    message: string;
}>;
/** 删除记忆 */
export declare function meDeleteMemory(id: number): Promise<{
    message: string;
}>;
/** 记忆类别列表 */
export declare function meMemoryCategories(): Promise<Array<{
    value: string;
    label: string;
}>>;
/** 知识图谱数据 */
export declare function meMemoryGraph(limit?: number): Promise<{
    nodes: Array<{
        id: number;
        title: string;
        category: string;
        visibility: string;
        importance: number;
    }>;
    edges: Array<{
        from_id: number;
        to_id: number;
        relation_type: string;
    }>;
}>;
/** 搜索通讯录用户 */
export declare function larkSearchContacts(q: string): Promise<LarkContactUser[]>;
/** 获取用户详情 */
export declare function larkGetContactDetail(userId: string): Promise<LarkContactUser>;
/** 获取部门列表 */
export declare function larkGetDepartments(): Promise<Array<{
    id: string;
    name: string;
    parentId: string;
}>>;
/** 导入联系人 */
export declare function larkImportContacts(data: {
    user_ids: string[];
    tags?: string[];
}): Promise<{
    imported: number;
}>;
/** 获取审批定义列表 */
export declare function larkGetApprovalDefs(): Promise<LarkApprovalDef[]>;
/** 创建审批实例 */
export declare function larkCreateApproval(data: {
    approval_code: string;
    form_data: Record<string, any>;
    description?: string;
}): Promise<{
    instance_id: string;
}>;
/** 获取审批实例详情 */
export declare function larkGetApproval(instanceId: string): Promise<any>;
/** 获取多维表格配置 */
export declare function larkGetBitableConfig(): Promise<Record<string, string>>;
/** 设置多维表格配置 */
export declare function larkSetBitableConfig(data: Record<string, string>): Promise<void>;
/** 获取多维表格数据表列表 */
export declare function larkGetBitableTables(): Promise<LarkBitableTable[]>;
/** 查询记录 */
export declare function larkGetBitableRecords(tableId: string): Promise<any[]>;
/** 新增记录 */
export declare function larkCreateBitableRecord(data: {
    table_id: string;
    fields: Record<string, any>;
}): Promise<any>;
/** 更新记录 */
export declare function larkUpdateBitableRecord(recordId: string, data: {
    table_id: string;
    fields: Record<string, any>;
}): Promise<any>;
/** 列出云空间文件 */
export declare function larkListDriveFiles(folderToken?: string): Promise<LarkDriveFile[]>;
/** 获取文件信息 */
export declare function larkGetDriveFileInfo(fileToken: string): Promise<LarkDriveFile>;
/** 获取文件下载 URL */
export declare function larkGetDriveDownloadUrl(fileToken: string): string;
/** 业务洽谈数字人对话 */
export declare function agentChat(data: AgentChatRequest): Promise<AgentChatResponse>;
/** 获取 Agent Card */
export declare function uumitGetAgentCard(): Promise<UUMitAgentCard>;
/** AI 对话 */
export declare function uumitChat(message: string): Promise<UUMitChatResult>;
/** 博客搜索 */
export declare function uumitBlogSearch(query: string): Promise<UUMitSearchResult>;
/** 获取项目列表 */
export declare function uumitGetProjects(): Promise<{
    projects: Array<Record<string, unknown>>;
    total: number;
}>;
/** 获取技能列表 */
export declare function uumitGetSkills(category?: string): Promise<{
    skills: Array<Record<string, unknown>>;
    total: number;
}>;
/** 获取可用能力列表 */
export declare function uumitGetCapabilities(): Promise<{
    agent: string;
    capabilities: Array<{
        name: string;
        description: string;
    }>;
}>;
/** 健康检查 */
export declare function uumitHealth(): Promise<{
    status: string;
    agent: string;
    timestamp: number;
}>;
/** Get笔记连接状态 */
export declare function bijinoteGetStatus(): Promise<{
    enabled: boolean;
    connected: boolean;
    message: string;
    synced_count: number;
}>;
/** 拉取 Get笔记列表（cursor 翻页）*/
export declare function bijinoteListNotes(cursor?: string): Promise<{
    notes: BijinoteNote[];
    has_more: boolean;
    cursor: string;
}>;
/** 获取笔记详情 + 同步状态 */
export declare function bijinoteGetNoteDetail(noteId: string): Promise<{
    note: BijinoteNote;
    sync_status: BijinoteSyncRecord | null;
}>;
/** 语义搜索笔记 */
export declare function bijinoteSearchNotes(query: string, topK?: number): Promise<{
    results: BijinoteNote[];
}>;
/** 知识库列表 */
export declare function bijinoteListTopics(): Promise<{
    topics: BijinoteTopic[];
    cached?: boolean;
}>;
/** 知识库内笔记列表 */
export declare function bijinoteListTopicNotes(topicId: string, page?: number): Promise<{
    notes: BijinoteNote[];
    has_more?: boolean;
}>;
/** 同步单条笔记到博客 */
export declare function bijinoteSyncNote(noteId: string, meta?: Record<string, unknown>): Promise<{
    success: boolean;
    blog_id: string;
    note_id: string;
    title: string;
}>;
/** 批量同步笔记 */
export declare function bijinoteBatchSyncNotes(noteIds: string[], meta?: Record<string, unknown>): Promise<{
    total: number;
    success: number;
    failed: number;
    results: Array<{
        success: boolean;
        note_id: string;
        blog_id?: string;
        error?: string;
    }>;
}>;
/** 已同步记录列表 */
export declare function bijinoteGetSyncRecords(): Promise<{
    records: BijinoteSyncRecord[];
}>;
/** 删除同步记录 */
export declare function bijinoteDeleteSyncRecord(noteId: string, deleteBlog?: boolean): Promise<{
    success: boolean;
    note_id: string;
    blog_deleted: boolean;
}>;
/** 查询单条同步状态 */
export declare function bijinoteGetSyncStatus(noteId: string): Promise<{
    synced: boolean;
    record?: BijinoteSyncRecord;
}>;
//# sourceMappingURL=api.d.ts.map