import type { AgentAbortSource } from "../../core/agent-abort-provenance.ts";
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcSessionState } from "./rpc-types.ts";
/**
 * Project one session into the wire state shape.
 *
 * Shared with `open_session` (session-command-router) so both surfaces answer with the SAME
 * fields: a second hand-rolled literal silently drifts, which is how `serviceTier`/`fastMode`
 * would otherwise be missing from an opened session's initial state.
 *
 * `lastAbortSource` is passed in rather than read from the session: `session.currentAbortSource`
 * is cleared once the turn settles, so only the caller that observed `agent_end` still knows
 * who owned the abort.
 */
export declare function buildRpcSessionState(session: AgentSession, lastAbortSource?: AgentAbortSource): RpcSessionState;
//# sourceMappingURL=rpc-session-state.d.ts.map