import { LibraryServerDataSQLite } from "mira-app-core/storage/sqlite";
import { ServerPluginManager } from "./ServerPluginManager";
import { EventManager } from "mira-app-core";
import { MiraServer } from "./MiraServer";
import { MiraWebsocketServer } from "./WebSocketServer";
import { LibraryWatcher } from "./LibraryWatcher";
export declare class LibraryStorage {
    libraries: Record<string, {
        libraryService?: LibraryServerDataSQLite;
        pluginManager?: ServerPluginManager;
        eventManager?: EventManager;
        savedConfig?: Record<string, any>;
        watcher?: LibraryWatcher;
    }>;
    server: MiraServer;
    webSocketServer: MiraWebsocketServer;
    constructor(server: MiraServer);
    getLibraries(): Record<string, {
        libraryService?: LibraryServerDataSQLite;
        pluginManager?: ServerPluginManager;
        eventManager?: EventManager;
        savedConfig?: Record<string, any>;
        watcher?: LibraryWatcher;
    }>;
    removeLibrary(libraryId: string): void;
    load(dbConfig: Record<string, any>): Promise<LibraryServerDataSQLite>;
    loadAll(): Promise<number>;
    clear(): void;
    getLibrary(libraryId: string): Record<string, any> | undefined;
    libraryExists(libraryId: string): boolean;
    /**
     * 启用库服务
     */
    enableLibrary(libraryId: string): Promise<boolean>;
    /**
     * 禁用库服务
     */
    disableLibrary(libraryId: string): Promise<boolean>;
    /**
     * 检查库是否处于活动状态
     */
    isLibraryActive(libraryId: string): boolean;
    /**
     * 获取库的状态
     */
    getLibraryStatus(libraryId: string): 'active' | 'inactive' | 'unknown';
    /**
     * 获取库的配置信息（无论是否活跃）
     */
    getLibraryConfig(libraryId: string): Record<string, any> | null;
}
//# sourceMappingURL=LibraryStorage.d.ts.map