import { MigrationServices } from '../../Migrations/MigrationServices'; import { ApplicationEvent, AbstractService, DiagnosticInfo, InternalEventHandlerInterface, InternalEventInterface } from '@standardnotes/services'; /** * The migration service orchestrates the execution of multi-stage migrations. * Migrations are registered during initial application launch, and listen for application * life-cycle events, and act accordingly. Migrations operate on the app-level, and not global level. * For example, a single migration may perform a unique set of steps when the application * first launches, and also other steps after the application is unlocked, or after the * first sync completes. Migrations live under /migrations and inherit from the base Migration class. */ export declare class MigrationService extends AbstractService implements InternalEventHandlerInterface { private services; private activeMigrations?; private baseMigration; constructor(services: MigrationServices); deinit(): void; initialize(): Promise; private markMigrationsAsDone; private runBaseMigrationPreRun; handleEvent(event: InternalEventInterface): Promise; /** * Called by application */ handleApplicationEvent(event: ApplicationEvent): Promise; hasPendingMigrations(): Promise; getStoredSnjsVersion(): Promise; private static getRequiredMigrations; private instantiateMigrationClasses; private handleStage; getDiagnostics(): Promise; }