import { ConfigService } from '@nestjs/config';
export declare class RagflowService {
    private readonly configService;
    private readonly logger;
    private readonly baseUrl;
    private readonly apiKey;
    private readonly embeddingModel;
    private readonly embeddingResetOnChange;
    private datasetIdCache;
    private chatIdCache;
    constructor(configService: ConfigService);
    resolveDatasetId(): Promise<string>;
    resolveChatId(datasetId: string): Promise<string>;
    uploadDocument(datasetId: string, filePath: string, displayName: string): Promise<{
        id: string;
        name: string;
    }>;
    ensureDatasetEmbeddingModel(datasetId: string): Promise<{
        changed: boolean;
        reset: boolean;
        target?: string;
    }>;
    deleteDocuments(datasetId: string, ids: string[]): Promise<void>;
    getDocumentStatus(datasetId: string, documentId: string): Promise<any | null>;
    isRecoverableDocumentFailure(message?: string | null): boolean;
    updateDocumentMetadata(datasetId: string, documentId: string, metadata: Record<string, string>): Promise<void>;
    parseDocuments(datasetId: string, documentIds: string[]): Promise<void>;
    retrieve(datasetId: string, question: string, pageSize: number): Promise<any>;
    createChatCompletion(chatId: string, question: string): Promise<any>;
    private listDatasets;
    private getDatasetById;
    private createDataset;
    private updateDatasetEmbeddingModel;
    private listDocuments;
    private deleteAllDocuments;
    private listChatsByName;
    private getChatById;
    private updateChatDatasets;
    private ensureChatDatasets;
    private createChatAssistant;
    private request;
}
