import { YuqueConfig } from '../interface'; export declare class YuqueClient { cfg: YuqueConfig; host: any; cookie: any; ctoken: any; log: boolean; constructor(config: YuqueConfig, log?: boolean); private getCookies; /** * 请求方法 * @param {*} path * @param {*} params * @param {*} method HTTP Method * @param log */ request(path: any, params?: {}, method?: string, log?: boolean): Promise; getUserInfo(): Promise; /** * 查询知识库分组 */ getBooksGroups(): Promise; getSpaceWikiBooksGroups(id: any): Promise; getBooks(): Promise; getGroups(): Promise; getBooksQuickLinks(): Promise; conversationCompletion(conversationId: number, question: string): Promise; conversationCreate(groupId: number): Promise; conversations(groupId: number): Promise; deleteBooksQuickLinks(id: any): Promise; deleteBooksGroups(id: any): Promise; deleteBooks(id: any): Promise; deleteGroup(id: any): Promise; getNotes(offset?: number, limit?: number): Promise; deleteNotes(ids: any): Promise; getNoteTag(): Promise; deleteNoteTag(id: any): Promise; getDoc(opts: { book_id: number; slug: string; merge_dynamic_data?: boolean; mode?: string; }): Promise; updateDocTitle(doc_id: number, title: string): Promise; updateDoc(opts: { book_id: number; slug: string; title?: string; }): Promise; createBooks(opts: { name?: string; userId: number; isPublic?: number; type?: string; }): Promise; createCatalog(opts: any): Promise; createDocs(opts: any): Promise; }