/** * Content processing utilities for guardrails. * * Provides centralized logic for content type detection, text extraction, * and message filtering for guardrail processing. */ import type { ContentPart, Message, TextOnlyMessageArray } from '../types'; export declare const TEXT_CONTENT_TYPES: readonly ['input_text', 'text', 'output_text', 'summary_text']; export declare class ContentUtils { /** * Check if a content part is text-based. */ static isText(part: ContentPart): boolean; /** * Extract text from a message. */ static extractTextFromMessage(message: Message): string; /** * Filter messages to text-only (for guardrails). * * Guardrails only work with text content, so this filters out * messages that don't contain any text parts. */ static filterToTextOnly(messages: Message[]): TextOnlyMessageArray; /** * Check if a message has text content. */ private static hasTextContent; } //# sourceMappingURL=content.d.ts.map