import type { ToolDefinition } from "@opencode-ai/plugin"; /** * Mark the instant just before a bridge request is sent. First mark wins so a * tool that issues several bridge requests still reports one bridge window * (first send -> last response); the intervening plugin work folds into it. */ export declare function markBridgeStart(): void; /** Mark the instant just after the bridge responds (last response wins). */ export declare function markBridgeEnd(): void; /** * Wrap every tool's execute() so each invocation logs a one-line latency * breakdown: total, pre-bridge (arg/permission/session-dir work), bridge * round-trip, and post-bridge (result formatting). Mutates execute in place; * call after the final tool surface is built so disabled tools aren't wrapped. */ export declare function instrumentToolMap(tools: Record): Record; //# sourceMappingURL=tool-perf.d.ts.map