import type { MongoDatabase } from '../connection/database.js'; import { MongoSchemaBuilder } from './builder.js'; /** * Schema class for MongoDB */ export declare class MongoSchema { private db; constructor(db: MongoDatabase); /** * Create a schema builder for a collection */ createCollection(name: string, connectionName?: string): MongoSchemaBuilder; /** * Drop a collection */ dropCollection(name: string, connectionName?: string): Promise; /** * Drop all collections in the database */ dropCollections(connectionName?: string): Promise; /** * Create a migration collection */ createMigrationCollection(connectionName?: string): Promise; /** * Get all migrations */ getMigrations(connectionName?: string): Promise<{ name: string; batch: number; }[]>; /** * Add a migration */ addMigration(name: string, batch: number, connectionName?: string): Promise; /** * Remove a migration */ removeMigration(name: string, connectionName?: string): Promise; /** * Get the latest batch number */ getLatestBatch(connectionName?: string): Promise; }