/** * BridgeRuntime — implements IAgentRuntime from @skaile/workspaces/types by wrapping * an AgentDriver + EventNormalizer. This is the primary integration point for * consumers that want normalized events from any driver. */ import type { AgentEvent, AgentPromptInput, AgentReconfigureOptions, AgentRuntimeConfig, IAgentRuntime } from "@skaile/workspaces/types"; /** * Implements `IAgentRuntime` from `@skaile/workspaces/types` by wrapping an {@link AgentDriver} * and an {@link EventNormalizer}. * * This is the primary integration point for consumers that want normalized `AgentEvent` * payloads from any driver without managing the driver lifecycle directly. Create via * {@link createRuntime} to avoid coupling to `BridgeRuntime` directly. * * @docLink packages/bridge/api-reference#runtime */ export declare class BridgeRuntime implements IAgentRuntime { private driver; private normalizer; private handlers; private boundEventHandler; private driverId; constructor(driverId?: string); start(config: AgentRuntimeConfig): Promise; configure(_config: AgentReconfigureOptions): Promise; prompt(message: string): Promise; promptInput(input: AgentPromptInput): Promise; reply(answer: string, question?: string, requestId?: string): Promise; abort(): Promise; dispose(): Promise; onEvent(handler: (event: AgentEvent) => void): void; offEvent(handler: (event: AgentEvent) => void): void; get isRunning(): boolean; } /** * Factory function to create a {@link BridgeRuntime} with the specified driver. * * @param driverId - Registered driver id (default: `"claude-sdk"`). * @returns A new `IAgentRuntime` wrapping the selected driver with event normalization. * @docLink packages/bridge/api-reference#runtime */ export declare function createRuntime(driverId?: string): IAgentRuntime; //# sourceMappingURL=runtime.d.ts.map