import type { PluginService, ServiceHealth } from "../service.ts"; import type { PluginContext } from "../context.ts"; import { LoopCoordinator } from "../../loop/coordinator.ts"; import { LoopStore } from "../../loop/loop-store.ts"; import type { CanonicalToolDef } from "../../platform/types.ts"; export declare class LoopService implements PluginService { readonly name = "loop-service"; readonly dependencies: string[]; readonly critical = true; private loopManager; private loopStore; private stateDegraded; private degradedDetail; private rawDirectory?; private sessionClient?; init(ctx: PluginContext): Promise; dispose(): Promise; getLoopManager(): LoopCoordinator; getLoopStore(): LoopStore; /** * Returns real compatibility `loop_*` tools (CanonicalToolDefs) when the * service is healthy, or PI_UNAVAILABLE stub tools when degraded. * * These tools are the restored Phase-C compatibility shims backed by the * LoopCoordinator (see src/loop/loop-tools.ts). They are consumed on the * opencode path via `loopToolsOverride` in buildCanonicalTools, which is * how the six loop_* tools appear in ToolService.getTools() output. */ getLoopTools(): Record; isDegraded(): boolean; getDegradedDetail(): string; health(): ServiceHealth; } //# sourceMappingURL=loop-service.d.ts.map