import { DataType, GrpcTimeOut } from './Common'; export interface FieldType { name: string; description: string; data_type?: DataType; is_primary_key?: boolean; type_params?: { dim?: string; max_length?: string; }; autoID?: boolean; } export declare enum ShowCollectionsType { All = 0, Loaded = 1 } export interface ShowCollectionsReq extends GrpcTimeOut { type?: ShowCollectionsType; collection_names?: string[]; } export interface CreateCollectionReq extends GrpcTimeOut { collection_name: string; shards_num?: number; description?: string; consistency_level?: 'Strong' | 'Session' | 'Bounded' | 'Eventually' | 'Customized'; fields: FieldType[]; } export declare enum ConsistencyLevelEnum { Strong = 0, Session = 1, Bounded = 2, Eventually = 3, Customized = 4 } interface CollectionNameReq extends GrpcTimeOut { /** * @param collection_name collection name string */ collection_name: string; } export interface HasCollectionReq extends CollectionNameReq { } export interface DescribeCollectionReq extends CollectionNameReq { } export interface GetCollectionStatisticsReq extends CollectionNameReq { } export interface LoadCollectionReq extends CollectionNameReq { replica_number?: number; } export interface ReleaseLoadCollectionReq extends CollectionNameReq { } export interface DropCollectionReq extends CollectionNameReq { } export interface CreateAliasReq extends CollectionNameReq { alias: string; } export interface DropAliasReq extends GrpcTimeOut { alias: string; } export interface AlterAliasReq extends CollectionNameReq { alias: string; } export interface CompactReq extends GrpcTimeOut { collection_name: string; timetravel?: number | string; } export interface GetCompactionStateReq extends GrpcTimeOut { compactionID: number | string; } export interface GetCompactionPlansReq extends GrpcTimeOut { compactionID: number | string; } export interface GetReplicaReq extends GrpcTimeOut { /** * @param collectionID collection ID */ collectionID: number | string; with_shard_nodes?: boolean; } export {};