import Connection from '../connection/grpc.js'; import { WeaviateClass } from '../openapi/types.js'; import { DbVersionSupport } from '../utils/dbVersion.js'; import { Collection } from './collection/index.js'; import { CollectionConfig, GenerativeConfig, GenerativeSearch, InvertedIndexConfigCreate, ModuleConfig, MultiTenancyConfigCreate, ObjectTTLConfigCreate, Properties, PropertyConfigCreate, ReferenceConfigCreate, ReplicationConfigCreate, Reranker, RerankerConfig, ShardingConfigCreate, VectorizersConfigCreate, Vectors } from './types/index.js'; /** * All the options available when creating a new collection. * * Inspect [the docs](https://weaviate.io/developers/weaviate/configuration) for more information on the * different configuration options and how they affect the behavior of your collection. */ export type CollectionConfigCreate = { /** The name of the collection. */ name: N; /** The description of the collection. */ description?: string; /** The configuration for Weaviate's generative capabilities. */ generative?: ModuleConfig; /** The configuration for Weaviate's inverted index. */ invertedIndex?: InvertedIndexConfigCreate; /** The configuration for object TTL. */ objectTTL?: ObjectTTLConfigCreate; /** The configuration for Weaviate's multi-tenancy capabilities. */ multiTenancy?: MultiTenancyConfigCreate; /** The properties of the objects in the collection. */ properties?: PropertyConfigCreate[]; /** The references of the objects in the collection. */ references?: ReferenceConfigCreate[]; /** The configuration for Weaviate's replication strategy. Is mutually exclusive with `sharding`. */ replication?: ReplicationConfigCreate; /** The configuration for Weaviate's reranking capabilities. */ reranker?: ModuleConfig; /** The configuration for Weaviate's sharding strategy. Is mutually exclusive with `replication`. */ sharding?: ShardingConfigCreate; /** The configuration for Weaviate's vectorizer(s) capabilities. */ vectorizers?: VectorizersConfigCreate; }; declare const collections: (connection: Connection, dbVersionSupport: DbVersionSupport) => { create: (config: CollectionConfigCreate) => Promise>; createFromSchema: (config: WeaviateClass) => Promise>; createFromJson: (schemaJson: WeaviateClass) => Promise>; delete: (name: string) => Promise; deleteAll: () => Promise; exists: (name: string) => Promise; export: (name: string) => Promise; exportToJson: (name: string) => Promise<{ class?: string; vectorConfig?: { [key: string]: import("../openapi/schema.js").definitions["VectorConfig"]; }; vectorIndexType?: string; vectorIndexConfig?: { [key: string]: unknown; }; shardingConfig?: { [key: string]: unknown; }; replicationConfig?: import("../openapi/schema.js").definitions["ReplicationConfig"]; invertedIndexConfig?: import("../openapi/schema.js").definitions["InvertedIndexConfig"]; multiTenancyConfig?: import("../openapi/schema.js").definitions["MultiTenancyConfig"]; objectTtlConfig?: import("../openapi/schema.js").definitions["ObjectTtlConfig"]; vectorizer?: string; moduleConfig?: { [key: string]: unknown; }; description?: string; properties?: import("../openapi/schema.js").definitions["Property"][]; }>; listAll: () => Promise; get: (name: TName) => Collection; use: (name: TName) => Collection; }; export interface Collections { create(config: CollectionConfigCreate): Promise>; createFromSchema(config: WeaviateClass): Promise>; createFromJson(schemaJson: WeaviateClass): Promise>; delete(collection: string): Promise; deleteAll(): Promise; exists(name: string): Promise; export(name: string): Promise; exportToJson(name: string): Promise; get(name: TName): Collection; listAll(): Promise; use(name: TName): Collection; } export default collections; export { WeaviateClass } from '../openapi/types.js'; export * from './aggregate/index.js'; export * from './backup/index.js'; export * from './cluster/index.js'; export * from './collection/index.js'; export * from './config/index.js'; export * from './configure/index.js'; export * from './data/index.js'; export * from './filters/index.js'; export * from './generate/index.js'; export * from './iterator/index.js'; export * from './query/index.js'; export * from './references/index.js'; export * from './sort/index.js'; export * from './tenants/index.js'; export * from './types/index.js'; export * from './vectors/multiTargetVector.js';