/** * Which mode each user message was sent in, read from the session. * * chassis writes a `chassis-mode` custom entry at every Build/Plan switch, so the mode of a * message is the last such entry before it on the branch (build when there is none). The result is * one mode per user message box that pi draws, in order, so the Nth box in the chat is the Nth * mode. pi draws a box for a user message only when it has text, and for a skill block only when * the block carries a message of its own (the skill itself is a different component). */ import type { AgentMode } from "./state.ts"; /** Whether pi draws a user message box for this message. */ export declare function drawsUserBox(message: { role?: string; content?: unknown; }): boolean; /** * The mode of every user message box, in order. `branch` is the whole branch from the root; * `contextIds` are the ids of the entries pi draws (after a compaction, older ones are left out, * but their mode entries still count). */ export declare function userMessageModes(branch: readonly any[], contextIds: ReadonlySet): AgentMode[];