import { Auth, CreateDocumentPayload, DocumentData, KnowledgeData, KnowledgePayload, QueryResult, RecordData } from '../types/index'; export declare function createKnowledgeApi(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void): { createKnowledge(payload: KnowledgePayload, options?: RequestInit): Promise; getKnowledgeBase(options?: RequestInit): Promise; getKnowledge(knowledgeId: string, options?: RequestInit): Promise; deleteKnowledge(knowledgeId: string, options?: RequestInit): Promise; createDocument(knowledgeId: string, payload: CreateDocumentPayload, options?: RequestInit): Promise; deleteDocument(knowledgeId: string, documentId: string, options?: RequestInit): Promise; getDocuments(knowledgeId: string, options?: RequestInit): Promise; getDocument(knowledgeId: string, documentId: string, options?: RequestInit): Promise; getRecords(knowledgeId: string, documentId: string, options?: RequestInit): Promise; query(knowledgeId: string, query: string, options?: RequestInit): Promise; }; export type KnowledegeApi = ReturnType;