import { HttpClientConfig, FetchOptions } from './types'; /** * HttpBaseClient is a base class for making HTTP requests to a Milvus server. * It provides basic functionality for making GET and POST requests, and handles * configuration, headers, and timeouts. * * The HttpClientConfig object should contain the following properties: * - endpoint: The URL of the Milvus server. * - username: (Optional) The username for authentication. * - password: (Optional) The password for authentication. * - token: (Optional) The token for authentication. * - fetch: (Optional) An alternative fetch API implementation, e.g., node-fetch for Node.js environments. * - baseURL: (Optional) The base URL for the API endpoints. * - version: (Optional) The version of the API endpoints. * - database: (Optional) The default database to use for requests. * - timeout: (Optional) The timeout for requests in milliseconds. * * Note: This is a base class and does not provide specific methods for interacting * with Milvus entities like collections or vectors. For that, use the HttpClient class * which extends this class and mixes in the Collection and Vector APIs. */ export declare class HttpBaseClient { config: HttpClientConfig; constructor(config: HttpClientConfig); get baseURL(): string; get authorization(): string; get database(): string; get timeout(): number; get headers(): { Authorization: string; Accept: string; ContentType: string; 'Accept-Type-Allow-Int64': string; }; get fetch(): ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions): Promise; GET(url: string, params?: Record, options?: FetchOptions): Promise; } declare const HttpClient_base: { new (...args: any[]): { readonly userPrefix: string; createUser(params: import("./types").HttpUserCreateReq, options?: FetchOptions | undefined): Promise>; updateUserPassword(params: import("./types").HttpUserUpdatePasswordReq, options?: FetchOptions | undefined): Promise>; dropUser(param: import("./types").HttpUserBaseReq, options?: FetchOptions | undefined): Promise>; describeUser(param: import("./types").HttpUserBaseReq, options?: FetchOptions | undefined): Promise>; listUsers(options?: FetchOptions | undefined): Promise>; grantRoleToUser(params: import("./types").HttpUserRoleReq, options?: FetchOptions | undefined): Promise>; revokeRoleFromUser(params: import("./types").HttpUserRoleReq, options?: FetchOptions | undefined): Promise>; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly rolePrefix: string; listRoles(options?: FetchOptions | undefined): Promise>; describeRole(params: import("./types").HttpRoleBaseReq, options?: FetchOptions | undefined): Promise; createRole(params: import("./types").HttpRoleBaseReq, options?: FetchOptions | undefined): Promise>; dropRole(params: import("./types").HttpRoleBaseReq, options?: FetchOptions | undefined): Promise>; grantPrivilegeToRole(params: import("./types").HttpRolePrivilegeReq, options?: FetchOptions | undefined): Promise>; revokePrivilegeFromRole(params: import("./types").HttpRolePrivilegeReq, options?: FetchOptions | undefined): Promise>; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly indexPrefix: string; createIndex(params: import("./types").HttpIndexCreateReq, options?: FetchOptions | undefined): Promise>; dropIndex(params: import("./types").HttpIndexBaseReq, options?: FetchOptions | undefined): Promise>; describeIndex(params: import("./types").HttpIndexBaseReq, options?: FetchOptions | undefined): Promise; listIndexes(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise>; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly importPrefix: string; listImportJobs(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise; createImportJobs(params: import("./types").HttpImportCreateReq, options?: FetchOptions | undefined): Promise; getImportJobProgress(params: import("./types").HttpImportProgressReq, options?: FetchOptions | undefined): Promise; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly aliasPrefix: string; listAliases(params: import("./types").HttpAliasBaseReq, options?: FetchOptions | undefined): Promise>; createAlias(params: import("./types").HttpAliasCreateReq, options?: FetchOptions | undefined): Promise>; describeAlias(params: import("./types").HttpAliasDescribeReq, options?: FetchOptions | undefined): Promise; dropAlias(params: import("./types").HttpAliasDropReq, options?: FetchOptions | undefined): Promise>; alterAlias(params: import("./types").HttpAliasCreateReq, options?: FetchOptions | undefined): Promise>; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly partitionPrefix: string; listPartitions(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise>; createPartition(params: import("./types").HttpPartitionBaseReq, options?: FetchOptions | undefined): Promise>; dropPartition(params: import("./types").HttpPartitionBaseReq, options?: FetchOptions | undefined): Promise>; loadPartitions(params: import("./types").HttpPartitionListReq, options?: FetchOptions | undefined): Promise>; releasePartitions(params: import("./types").HttpPartitionListReq, options?: FetchOptions | undefined): Promise>; hasPartition(params: import("./types").HttpPartitionBaseReq, options?: FetchOptions | undefined): Promise; getPartitionStatistics(params: import("./types").HttpPartitionBaseReq, options?: FetchOptions | undefined): Promise; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly collectionPrefix: string; createCollection(data: import("./types").HttpCollectionCreateReq, options?: FetchOptions | undefined): Promise>; describeCollection(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise; dropCollection(data: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise>; listCollections(params?: import("./types").HttpCollectionListReq, options?: FetchOptions | undefined): Promise; hasCollection(params: Required, options?: FetchOptions | undefined): Promise; renameCollection(params: import("./types").HttpCollectionRenameReq, options?: FetchOptions | undefined): Promise>; getCollectionStatistics(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise; loadCollection(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise>; releaseCollection(params: import("./types").HttpBaseReq, options?: FetchOptions | undefined): Promise>; getCollectionLoadState(params: import("./types").HttpCollectionLoadStateReq, options?: FetchOptions | undefined): Promise; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & { new (...args: any[]): { readonly vectorPrefix: string; get(params: import("./types").HttpVectorGetReq, options?: FetchOptions | undefined): Promise; insert(data: import("./types").HttpVectorInsertReq, options?: FetchOptions | undefined): Promise; upsert(data: import("./types").HttpVectorInsertReq, options?: FetchOptions | undefined): Promise; query(data: import("./types").HttpVectorQueryReq, options?: FetchOptions | undefined): Promise; search(data: import("./types").HttpVectorSearchReq, options?: FetchOptions | undefined): Promise; hybridSearch(data: import("./types").HttpVectorHybridSearchReq, options?: FetchOptions | undefined): Promise; delete(data: import("./types").HttpVectorDeleteReq, options?: FetchOptions | undefined): Promise>; config: 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: ((input: any, init?: any) => Promise) | typeof fetch; POST(url: string, data?: Record, options?: FetchOptions | undefined): Promise; GET(url: string, params?: Record, options?: FetchOptions | undefined): Promise; }; } & typeof HttpBaseClient; /** * The HttpClient class extends the functionality * of the HttpBaseClient class by mixing in the * - Collection * - Vector * - Alias * - Partition * - MilvusIndex * - Import * - Role * - User APIs. */ export declare class HttpClient extends HttpClient_base { } export {};