import { SubscrioConfig } from './config/types.js'; import { ProductManagementService } from './application/services/ProductManagementService.js'; import { FeatureManagementService } from './application/services/FeatureManagementService.js'; import { PlanManagementService } from './application/services/PlanManagementService.js'; import { CustomerManagementService } from './application/services/CustomerManagementService.js'; import { SubscriptionManagementService } from './application/services/SubscriptionManagementService.js'; import { BillingCycleManagementService } from './application/services/BillingCycleManagementService.js'; import { FeatureCheckerService } from './application/services/FeatureCheckerService.js'; import { StripeIntegrationService } from './application/services/StripeIntegrationService.js'; import { ConfigSyncService } from './application/services/ConfigSyncService.js'; /** * Main Subscrio class - entry point for the library */ export declare class Subscrio { private readonly db; private readonly installer; private readonly productRepo; private readonly featureRepo; private readonly planRepo; private readonly customerRepo; private readonly subscriptionRepo; private readonly billingCycleRepo; readonly products: ProductManagementService; readonly features: FeatureManagementService; readonly plans: PlanManagementService; readonly customers: CustomerManagementService; readonly subscriptions: SubscriptionManagementService; readonly billingCycles: BillingCycleManagementService; readonly featureChecker: FeatureCheckerService; readonly stripe: StripeIntegrationService; readonly configSync: ConfigSyncService; constructor(config: SubscrioConfig); /** * Install database schema */ installSchema(adminPassphrase?: string): Promise; /** * Verify schema installation * Returns the schema version if installed, null otherwise */ verifySchema(): Promise; /** * Run pending database migrations * * Migrations are tracked via schema_version in system_config. * This method runs only pending migrations and updates the version. * * @returns Number of migrations applied */ migrate(): Promise; /** * Drop all database tables (WARNING: Destructive!) */ dropSchema(): Promise; /** * Close database connections */ close(): Promise; } //# sourceMappingURL=Subscrio.d.ts.map