export interface HostBridgeToolContext { readonly sessionKey: string; readonly sessionId: string; } export interface HostBridgeToolLogger { debug?(message: string): void; info(message: string): void; warn(message: string): void; error?(message: string): void; } export interface HostBridgeToolContent { readonly type: string; readonly text?: string; readonly [key: string]: unknown; } export interface HostBridgeToolResult { readonly content?: readonly HostBridgeToolContent[]; readonly details?: unknown; readonly isError?: boolean; readonly [key: string]: unknown; } export interface HostBridgeCommandResult { readonly text: string; readonly isError?: boolean; } export interface HostBridgeCommandDescriptor { readonly name: string; readonly description: string; readonly acceptsArgs: boolean; execute(args: string): Promise; } export interface HostBridgeToolDescriptor { readonly name: string; readonly description: string; readonly inputSchema: Readonly>; execute(toolCallId: string, args: Readonly>): Promise; } export interface HostBridgeToolRegistry { list(): readonly HostBridgeToolDescriptor[]; get(name: string): HostBridgeToolDescriptor | undefined; execute(name: string, toolCallId: string, args: Readonly>): Promise; } export interface HostBridgeCommandToolRegistry extends HostBridgeToolRegistry { command(): HostBridgeCommandDescriptor; } export interface CreateHostBridgeToolsOptions { readonly relayPath: string; readonly relayEnvironment: NodeJS.ProcessEnv; readonly pluginConfig: Readonly>; readonly logger: HostBridgeToolLogger; readonly context: HostBridgeToolContext; } /** * Adapt the established host-neutral AKK catalog to a Host Bridge registry. * * One private runtime owner is retained for the registry lifetime so approval, * action-offer, resume-snapshot, and idempotency state cannot cross owners. */ export declare function createHostBridgeToolRegistry(options: CreateHostBridgeToolsOptions): HostBridgeCommandToolRegistry; export declare function createHostBridgeTools(options: CreateHostBridgeToolsOptions): readonly HostBridgeToolDescriptor[];