import { HttpBaseClient } from '../HttpClient'; import { Constructor, HttpVectorGetReq, HttpVectorInsertReq, HttpVectorInsertResponse, HttpVectorQueryReq, HttpVectorQueryResponse, HttpVectorSearchReq, HttpVectorSearchByIdsReq, HttpVectorSearchAggregationReq, HttpVectorSearchAggregationResponse, HttpVectorDeleteReq, HttpVectorSearchResponse, HttpBaseResponse, FetchOptions, HttpVectorUpsertResponse, HttpVectorUpsertReq, HttpVectorHybridSearchReq } from '../types'; /** * Vector is a mixin function that extends the functionality of a base class. * It provides methods to interact with vectors in a Milvus cluster. * * @param {Constructor} Base - The base class to be extended. * @returns {class} - The extended class with additional methods for vector management. * * @method get - Retrieves a specific vector from Milvus. * @method insert - Inserts a new vector into Milvus. * @method upsert - Inserts a new vector into Milvus, or updates it if it already exists. * @method query - Queries for vectors in Milvus. * @method search - Searches for vectors in Milvus. * @method delete - Deletes a specific vector from Milvus. */ export declare function Vector>(Base: T): { new (...args: any[]): { readonly vectorPrefix: string; get(params: HttpVectorGetReq, options?: FetchOptions): Promise; insert(data: HttpVectorInsertReq, options?: FetchOptions): Promise; /** Upsert rows, optionally updating individual field paths on Milvus 3.0.6+. */ upsert(data: HttpVectorUpsertReq, options?: FetchOptions): Promise; /** Queries rows with optional filter parameters, scalar ordering, and grouping. */ query(data: HttpVectorQueryReq, options?: FetchOptions): Promise; /** Searches and returns bucket aggregations for each query input. */ search(data: HttpVectorSearchAggregationReq, options?: FetchOptions): Promise; /** Searches and returns bucket aggregations for each query input. */ search(data: HttpVectorSearchReq | HttpVectorSearchByIdsReq, options?: FetchOptions): Promise; /** Fuses sub-searches with a reranker or a function chain. */ hybridSearch(data: HttpVectorHybridSearchReq, options?: FetchOptions): Promise; /** Deletes rows matching a filter and its optional expression parameters. */ delete(data: HttpVectorDeleteReq, options?: FetchOptions): Promise; config: import("../types").HttpClientConfig; readonly baseURL: string; readonly authorization: string; readonly database: string; readonly timeout: number; readonly headers: { Authorization: string; Accept: string; ContentType: string; 'Accept-Type-Allow-Int64': string; }; readonly fetch: typeof fetch | ((input: any, init?: any) => Promise); _handleResponse(response: Response, url: string, decode?: ((body: string) => T) | undefined): Promise; POST(url: string, data?: Record, options?: FetchOptions | undefined, decode?: ((body: string) => T_1) | undefined, encode?: ((data: Record) => string) | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & T;