import { ICommonObject, IDocument } from 'flowise-components-bullmq'; import { DataSource } from 'typeorm'; import { IDocumentStoreFileChunkPagedResponse, IDocumentStoreLoader, IDocumentStoreLoaderForPreview, IDocumentStoreRefreshData, IDocumentStoreUpsertData, IDocumentStoreWhereUsed, IExecuteDocStoreUpsert, IExecutePreviewLoader, IExecuteProcessLoader, IExecuteVectorStoreInsert, IOverrideConfig } from '../../Interface'; import { UsageCacheManager } from '../../UsageCacheManager'; import { DocumentStore } from '../../database/entities/DocumentStore'; import { DocumentStoreFileChunk } from '../../database/entities/DocumentStoreFileChunk'; export declare const previewChunks: ({ appDataSource, componentNodes, data, orgId }: IExecutePreviewLoader) => Promise<{ chunks: IDocument>[]; totalChunks: number; previewChunkCount: number | undefined; }>; export declare const processLoader: ({ appDataSource, componentNodes, data, docLoaderId, orgId, workspaceId, subscriptionId, usageCacheManager }: IExecuteProcessLoader) => Promise; export declare const insertIntoVectorStore: ({ appDataSource, componentNodes, telemetry, data, isStrictSave, orgId }: IExecuteVectorStoreInsert) => Promise; export declare const executeDocStoreUpsert: ({ appDataSource, componentNodes, telemetry, storeId, totalItems, files, isRefreshAPI, orgId, workspaceId, subscriptionId, usageCacheManager }: IExecuteDocStoreUpsert) => Promise; export declare const findDocStoreAvailableConfigs: (storeId: string, docId: string) => Promise; declare const _default: { updateDocumentStoreUsage: (chatId: string, storeId: string | undefined, workspaceId?: string) => Promise; deleteDocumentStore: (storeId: string, orgId: string, workspaceId: string, usageCacheManager: UsageCacheManager) => Promise<{ deleted: number | null | undefined; }>; createDocumentStore: (newDocumentStore: DocumentStore, orgId: string) => Promise; deleteLoaderFromDocumentStore: (storeId: string, docId: string, orgId: string, workspaceId: string, usageCacheManager: UsageCacheManager) => Promise; getAllDocumentStores: (workspaceId?: string) => Promise; getAllDocumentFileChunksByDocumentStoreIds: (documentStoreIds: string[]) => Promise; getDocumentStoreById: (storeId: string) => Promise; getUsedChatflowNames: (entity: DocumentStore) => Promise; getDocumentStoreFileChunks: (appDataSource: DataSource, storeId: string, docId: string, pageNo?: number) => Promise; updateDocumentStore: (documentStore: DocumentStore, updatedDocumentStore: DocumentStore) => Promise; previewChunksMiddleware: (data: IDocumentStoreLoaderForPreview, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; saveProcessingLoader: (appDataSource: DataSource, data: IDocumentStoreLoaderForPreview) => Promise; processLoaderMiddleware: (data: IDocumentStoreLoaderForPreview, docLoaderId: string, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager, isInternalRequest?: boolean) => Promise; deleteDocumentStoreFileChunk: (storeId: string, docId: string, chunkId: string) => Promise; editDocumentStoreFileChunk: (storeId: string, docId: string, chunkId: string, content: string, metadata: ICommonObject) => Promise; getDocumentLoaders: () => Promise; insertIntoVectorStoreMiddleware: (data: ICommonObject, isStrictSave: boolean | undefined, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; getEmbeddingProviders: () => Promise; getVectorStoreProviders: () => Promise; getRecordManagerProviders: () => Promise; saveVectorStoreConfig: (appDataSource: DataSource, data: ICommonObject, isStrictSave?: boolean) => Promise; queryVectorStore: (data: ICommonObject) => Promise<{ timeTaken: number; docs: any; }>; deleteVectorStoreFromStore: (storeId: string) => Promise; updateVectorStoreConfigOnly: (data: ICommonObject) => Promise<{}>; upsertDocStoreMiddleware: (storeId: string, data: IDocumentStoreUpsertData, files: Express.Multer.File[] | undefined, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; refreshDocStoreMiddleware: (storeId: string, data: IDocumentStoreRefreshData, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; generateDocStoreToolDesc: (docStoreId: string, selectedChatModel: ICommonObject) => Promise; findDocStoreAvailableConfigs: (storeId: string, docId: string) => Promise; }; export default _default;