/** * Resolve prompt context for synthetic OpenCode user messages. * * OpenCode records even ignored/noReply prompt messages as user messages. If a * plugin sends one without the previous model/variant, OpenCode's next prompt * can inherit the synthetic message's default model/variant and change usage or * cache attribution. Resolve the most recent assistant context and message IDs * so hidden replies preserve model state and active-run notifications can be * ordered before the assistant without becoming pending user work. */ export interface ResolvedPromptContext { agent?: string; model?: { providerID: string; modelID: string; }; variant?: string; latestAssistantMessageId?: string; latestUserMessageId?: string; } export declare function resolvePromptContext(client: unknown, sessionId: string): Promise;