import type { CollModCommand, CreateCollectionCommand, CreateIndexCommand, DropCollectionCommand, DropIndexCommand, } from './ddl-commands'; import type { ListCollectionsCommand, ListIndexesCommand } from './inspection-commands'; export interface MongoDdlCommandVisitor { createIndex(command: CreateIndexCommand): R; dropIndex(command: DropIndexCommand): R; createCollection(command: CreateCollectionCommand): R; dropCollection(command: DropCollectionCommand): R; collMod(command: CollModCommand): R; } export interface MongoInspectionCommandVisitor { listIndexes(command: ListIndexesCommand): R; listCollections(command: ListCollectionsCommand): R; }