/** * Build a ToolContext from the envelope's pre-resolved principal. * * Pure data transformation — no DB calls. The principal was resolved * at the front door (API route, cron, escalation re-run) and travels * with the envelope. */ import type { LTEnvelope } from '../../types/envelope'; import type { ToolContext } from '../../types/tool-context'; export declare function buildToolContextFromEnvelope(envelope: LTEnvelope | undefined, workflowId?: string, traceId?: string, spanId?: string): ToolContext | null;