import type { PluginService, PluginCoreLike } from "./service.ts"; import type { PluginContext } from "./context.ts"; import { EventBus } from "./event-bus.ts"; import { ServiceSupervisor } from "./service-supervisor.ts"; export declare class DescriptiveCycleError extends Error { readonly cycleMembers: string[]; constructor(cycleMembers: string[]); } export declare class PluginCore implements PluginCoreLike { private services; private ctx; private disposed; private bus; private degraded; private supervisor; constructor(); registerService(svc: PluginService): void; getService(name: string): T | undefined; getServices(): Map; getBus(): EventBus; isDegraded(name: string): boolean; getSupervisor(): ServiceSupervisor; init(ctx: PluginContext): Promise; dispose(): Promise; /** * Restart a single service and all its transitive dependents. * Disposes the target service, re-initializes it, then disposes and * re-initializes every service that depends on it (transitively). * Errors during dispose are caught and logged; re-init errors propagate. */ restartService(name: string): Promise; private topoSort; } //# sourceMappingURL=plugin-core.d.ts.map