/** * Message parsing and normalization utilities. */ /** * Normalize message content to a string for hashing and comparison. * Handles both string content and array content (Anthropic content blocks). * Strips cache_control metadata to ensure hash stability across requests. * * NOTE: OpenCode sends content as a string on the first request but as * an array on subsequent ones. This normalizer handles both formats. * Other agents may behave differently — this will move to the adapter pattern. */ export declare function normalizeContent(content: any): string; /** * Extract the advisor model from a tools array. * Returns the model string if an advisor tool definition is found, undefined otherwise. * The advisor tool is identified by a type starting with "advisor_". */ export declare function extractAdvisorModel(tools: unknown): string | undefined; /** * Remove advisor tool definitions from a tools array. * Returns a new array with advisor tools filtered out. */ export declare function stripAdvisorTools(tools: unknown[]): unknown[]; /** * Extract only the last user message (for session resume — SDK already has history). */ export declare function getLastUserMessage(messages: Array<{ role: string; content: any; }>): Array<{ role: string; content: any; }>; //# sourceMappingURL=messages.d.ts.map