import { SearchResponse } from './apifetch'; interface ApiResponse { status: number; text: string; } export interface IndexingDocument { id?: string; url?: string; title?: string; main_content?: string; custom_fields?: Record; } /** * Fetch document */ declare const getDocument: (apiHostname: string, sitekey: string, privatekey: string, id: string) => Promise; /** * Add document */ declare const saveDocument: (apiHostname: string, sitekey: string, privatekey: string, document: IndexingDocument) => Promise; /** * Batch add documents */ declare const saveDocumentsBatch: (apiHostname: string, sitekey: string, privatekey: string, documents: { documents: IndexingDocument[]; }) => Promise; /** * Delete document */ declare const deleteDocument: (apiHostname: string, sitekey: string, privatekey: string, id: string) => Promise; /** * Batch delete documents */ declare const deleteDocumentsBatch: (apiHostname: string, sitekey: string, privatekey: string, batch: { documents: string[]; }) => Promise; export { getDocument, saveDocument, saveDocumentsBatch, deleteDocument, deleteDocumentsBatch }; //# sourceMappingURL=indexingapi.d.ts.map