/** * MapperRegistry — dispatches tool calls to the appropriate mapper. */ export interface MappedEvent { type: string; data: Record; } export interface EventMapper { /** OpenClaw tool names this mapper handles */ toolNames: string[]; /** Map tool call start to an event */ mapStart(toolName: string, params: Record): MappedEvent; /** Map tool call end (with result/error) to an event */ mapEnd(toolName: string, params: Record, result: Record | null, error?: Error): MappedEvent; } export declare class MapperRegistry { private mappers; private fallback; constructor(fallback: EventMapper); /** Register a mapper for its declared tool names */ register(mapper: EventMapper): void; /** Find the mapper for a tool name */ getMapper(toolName: string): EventMapper; /** Check if a tool name has a dedicated mapper (not fallback) */ hasMapper(toolName: string): boolean; /** Get all registered tool names (excluding fallback) */ registeredToolNames(): string[]; /** Map a tool call start */ mapStart(toolName: string, params: Record): MappedEvent; /** Map a tool call end */ mapEnd(toolName: string, params: Record, result: Record | null, error?: Error): MappedEvent; } //# sourceMappingURL=MapperRegistry.d.ts.map