import { HttpBaseClient } from '../HttpClient'; import { Constructor } from '../types/index'; import { HttpCollectionCreateReq, HttpCollectionListReq, HttpCollectionListResponse, HttpCollectionDescribeResponse, HttpBaseResponse, HttpBaseReq, FetchOptions, HttpCollectionRenameReq, HttpCollectionHasResponse, HttpCollectionStatisticsResponse, HttpCollectionFlushResponse, HttpCollectionLoadStateReq, HttpCollectionLoadStateResponse, HttpCollectionAddFieldReq, HttpCollectionAddFieldResponse, HttpCollectionAddFunctionFieldReq, HttpCollectionAddStructFieldReq, HttpCollectionAlterFunctionReq, HttpCollectionDropFieldReq, HttpCollectionFunctionReq, HttpCollectionAlterPropertiesReq, HttpCollectionAlterPropertiesResponse, HttpCollectionAlterFieldPropertiesReq, HttpCollectionAlterFieldPropertiesResponse, HttpCollectionDropPropertiesReq, HttpCollectionDropPropertiesResponse, HttpCollectionCompactReq, HttpCollectionCompactResponse, HttpCollectionGetCompactionStateReq, HttpCollectionGetCompactionStateResponse, HttpCollectionRefreshLoadReq, HttpRefreshExternalCollectionReq, HttpRefreshExternalCollectionJobInfo } from '../types'; /** * Collection is a mixin function that extends the functionality of a base class. * It provides methods to interact with collections in a Milvus cluster. * * @param {Constructor} Base - The base class to be extended. * @returns {class} - The extended class with additional methods for collection management. * * @method createCollection - Creates a new collection in Milvus. * @method describeCollection - Retrieves the description of a specific collection. * @method dropCollection - Deletes a specific collection from Milvus. * @method listCollections - Lists all collections in the Milvus cluster. * @method hasCollection - Checks if a collection exists in the Milvus cluster. * @method renameCollection - Renames a collection in the Milvus cluster. * @method getCollectionStatistics - Retrieves statistics about a collection. * @method loadCollection - Loads a collection into memory. * @method releaseCollection - Releases a collection from memory. * @method getCollectionLoadState - Retrieves the load state of a collection. */ export declare function Collection>(Base: T): { new (...args: any[]): { readonly collectionPrefix: string; /** Remove all data while preserving the collection schema and indexes. */ truncateCollection(params: HttpBaseReq, options?: FetchOptions): Promise>; addCollectionStructField(params: HttpCollectionAddStructFieldReq, options?: FetchOptions): Promise>; dropCollectionField(params: HttpCollectionDropFieldReq, options?: FetchOptions): Promise>; /** Add a function, its output field and its index together. */ addFunctionField(params: HttpCollectionAddFunctionFieldReq, options?: FetchOptions): Promise>; alterCollectionFunction(params: HttpCollectionAlterFunctionReq, options?: FetchOptions): Promise>; /** Drop a function and its output field together. */ dropFunctionField(params: HttpCollectionFunctionReq, options?: FetchOptions): Promise>; readonly externalCollectionJobPrefix: string; /** Start a refresh and return its decimal job ID. */ refreshExternalCollection(params: HttpRefreshExternalCollectionReq, options?: FetchOptions): Promise>; /** Read refresh progress with the exact job ID returned at submission. */ getRefreshExternalCollectionProgress(params: { jobId: string; }, options?: FetchOptions): Promise>; listRefreshExternalCollectionJobs(params?: Partial, options?: FetchOptions): Promise>; createCollection(data: HttpCollectionCreateReq, options?: FetchOptions): Promise; describeCollection(params: HttpBaseReq, options?: FetchOptions): Promise; dropCollection(data: HttpBaseReq, options?: FetchOptions): Promise; addCollectionField(params: HttpCollectionAddFieldReq, options?: FetchOptions): Promise; alterCollectionProperties(params: HttpCollectionAlterPropertiesReq, options?: FetchOptions): Promise; alterCollectionFieldProperties(params: HttpCollectionAlterFieldPropertiesReq, options?: FetchOptions): Promise; dropCollectionProperties(params: HttpCollectionDropPropertiesReq, options?: FetchOptions): Promise; listCollections(params?: HttpCollectionListReq, options?: FetchOptions): Promise; hasCollection(params: Required, options?: FetchOptions): Promise; renameCollection(params: HttpCollectionRenameReq, options?: FetchOptions): Promise>; getCollectionStatistics(params: HttpBaseReq, options?: FetchOptions): Promise; flushCollection(params: HttpBaseReq, options?: FetchOptions): Promise; loadCollection(params: HttpBaseReq, options?: FetchOptions): Promise>; releaseCollection(params: HttpBaseReq, options?: FetchOptions): Promise>; getCollectionLoadState(params: HttpCollectionLoadStateReq, options?: FetchOptions): Promise; compactCollection(params: HttpCollectionCompactReq, options?: FetchOptions): Promise; getCompactionState(params: HttpCollectionGetCompactionStateReq, options?: FetchOptions): Promise; refreshLoad(params: HttpCollectionRefreshLoadReq, 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;