import type { LanguageServiceHost } from 'typescript'; import type { AutoCompletion } from '@mongodb-js/ts-autocomplete'; import type { JSONSchema } from 'mongodb-schema'; import type { AutocompletionContext } from './autocompletion-context'; type MongoDBAutocompleterOptions = { context: AutocompletionContext; fallbackServiceHost?: LanguageServiceHost; }; declare class ConnectionSchema { private readonly databaseSchemas; constructor(); addDatabase(databaseName: string): void; setDatabaseCollectionNames(databaseName: string, collectionNames: string[]): boolean; addCollectionSchema(databaseName: string, collectionName: string, collectionSchema: JSONSchema): boolean; toTypescriptTypeDefinition(): string; } export declare class MongoDBAutocompleter { private readonly context; private readonly connectionSchemas; private readonly autocompleter; private previousConnectionDB; private previousCollectionName; constructor({ context, fallbackServiceHost }: MongoDBAutocompleterOptions); addConnection(connectionId: string): ConnectionSchema; getConnectionSchemaCode(connectionId: string, schemaType: string): string; getConnectionShellAPICode(connectionId: string): string; getCurrentGlobalsCode(connectionId: string, databaseName: string): string; autocomplete(code: string): Promise; } export {}; //# sourceMappingURL=autocompleter.d.ts.map