import { DrizzleDb } from './drizzle.js'; /** * Schema installer for setting up database */ export declare class SchemaInstaller { private readonly db; constructor(db: DrizzleDb); /** * Install database schema */ install(adminPassphrase?: string): Promise; /** * Create all database tables */ private createTables; /** * Verify schema installation * Returns the schema version if installed, null otherwise */ verify(): Promise; /** * Current schema version - increment when adding migrations */ private readonly CURRENT_SCHEMA_VERSION; /** * Setup initial system configuration */ private setupInitialConfig; /** * Get current schema version from system_config */ getCurrentSchemaVersion(): Promise; /** * Update schema version in system_config */ private updateSchemaVersion; /** * Run pending migrations * Returns the number of migrations applied */ migrate(): Promise; /** * Migration 1.1.0: Add transitioned_at column to subscriptions */ private migrateTo_1_1_0; /** * Compare two version strings (e.g., "1.0.0" vs "1.1.0") * Returns: -1 if v1 < v2, 0 if v1 == v2, 1 if v1 > v2 */ private compareVersions; /** * Drop all tables (use with caution!) */ /** * Drop all Subscrio tables (in reverse dependency order) */ dropAll(): Promise; } //# sourceMappingURL=installer.d.ts.map