capacitor-native-update
Version:
Native Update Plugin for Capacitor
66 lines (65 loc) • 1.66 kB
TypeScript
import { ConfigManager, PluginConfig } from './config';
import { Logger } from './logger';
import { SecurityValidator } from './security';
import { BundleManager } from '../live-update/bundle-manager';
import { DownloadManager } from '../live-update/download-manager';
import { VersionManager } from '../live-update/version-manager';
/**
* Central manager for all plugin components
*/
export declare class PluginManager {
private static instance;
private readonly configManager;
private readonly logger;
private readonly securityValidator;
private bundleManager;
private downloadManager;
private versionManager;
private initialized;
private constructor();
static getInstance(): PluginManager;
/**
* Initialize the plugin with configuration
*/
initialize(config: PluginConfig): Promise<void>;
/**
* Check if plugin is initialized
*/
isInitialized(): boolean;
/**
* Ensure plugin is initialized
*/
private ensureInitialized;
/**
* Get bundle manager
*/
getBundleManager(): BundleManager;
/**
* Get download manager
*/
getDownloadManager(): DownloadManager;
/**
* Get version manager
*/
getVersionManager(): VersionManager;
/**
* Get configuration manager
*/
getConfigManager(): ConfigManager;
/**
* Get logger
*/
getLogger(): Logger;
/**
* Get security validator
*/
getSecurityValidator(): SecurityValidator;
/**
* Reset plugin state
*/
reset(): Promise<void>;
/**
* Clean up resources
*/
cleanup(): Promise<void>;
}