mira-app-core
Version:
Core library for Mira TypeScript project - provides base functionality without auto-execution
17 lines • 827 B
TypeScript
import { ServerPluginManager } from './ServerPluginManager';
import { ILibraryServerData } from 'mira-storage-sqlite';
export declare abstract class ServerPlugin {
protected readonly pluginName: string;
protected configs: Record<string, any>;
protected readonly pluginDir: string;
protected readonly pluginDataDir: string;
constructor(pluginName: string, pluginManager: ServerPluginManager, dbServer: ILibraryServerData);
private ensureDirExists;
protected writeConfig(key: string, value: any): void;
protected saveConfig(): void;
protected readConfig(key: string): any;
protected loadConfig(defaultConfig?: Record<string, any>): void;
protected writeJson(filename: string, data: any): void;
protected readJson(filename: string): any;
}
//# sourceMappingURL=ServerPlugin.d.ts.map