import type { ThinkingLevel } from "@oh-my-pi/pi-agent-core"; import { EventBus } from "../../utils/event-bus"; import type { Extension, ExtensionFactory, ExtensionRuntime as IExtensionRuntime, LoadExtensionsResult } from "./types"; export declare class ExtensionRuntimeNotInitializedError extends Error { constructor(); } /** * Extension runtime with throwing stubs for action methods. * These are replaced with real implementations during initialization. */ export declare class ExtensionRuntime implements IExtensionRuntime { flagValues: Map; pendingProviderRegistrations: Array<{ name: string; config: import("./types").ProviderConfig; sourceId: string; }>; sendMessage(): void; sendUserMessage(): void; appendEntry(): void; setLabel(): void; getActiveTools(): string[]; getAllTools(): string[]; setActiveTools(): Promise; getCommands(): never; setModel(): Promise; getThinkingLevel(): ThinkingLevel; setThinkingLevel(): void; getSessionName(): string | undefined; setSessionName(): Promise; } /** * Create an Extension from an inline factory function. */ export declare function loadExtensionFromFactory(factory: ExtensionFactory, cwd: string, eventBus: EventBus, runtime: IExtensionRuntime, name?: string): Promise; /** * Load extensions from paths. */ export declare function loadExtensions(paths: string[], cwd: string, eventBus?: EventBus): Promise; /** * Discover and load extensions from standard locations. */ export declare function discoverAndLoadExtensions(configuredPaths: string[], cwd: string, eventBus?: EventBus, disabledExtensionIds?: string[]): Promise;