import type { AgentMessage } from "../internal/harness.js"; /** Read the (possibly absent) `role` off an AgentMessage defensively — the union doesn't expose it * uniformly, so context passes narrow by role with a single cast in one place. */ export declare function messageRole(m: AgentMessage): string | undefined; /** True if the message is a tool-result message (shared by the context-edit and context-guard passes). */ export declare function isToolResult(m: AgentMessage): boolean; //# sourceMappingURL=message-utils.d.ts.map