import type { AgentTool } from '@earendil-works/pi-agent-core'; /** * Provider-visible tool order is part of the cached prompt prefix. * Static core tools are sorted deterministically at the prefix; dynamic `mcp__*` / `device__*` * tools are appended at the tail in arrival/activation order so newly loaded tools never * shift existing declarations and invalidate the KV prompt cache. */ export declare function sortToolsForPromptCache>(tools: readonly T[]): T[]; /** * Explicit prefix-stable ordering for mixed static + dynamically activated tools. * Any tool in `dynamicNames` (or `mcp__*` / `device__*`) stays at the tail in its existing * activation order instead of interleaving into the sorted static prefix. */ export declare function sortToolsWithStablePrefix>(tools: readonly T[], dynamicNames?: ReadonlySet): T[];