import { SpanRecord } from '@mastra/core/storage';
/**
 * Extract a truncated text preview from a span's input field.
 * Agent traces store `input` as an array of message objects.
 * Returns the text content of all user messages joined, truncated to maxLength.
 */
export declare function getInputPreview(input: unknown, maxLength?: number): string;
/**
 * Check if a span indicates that the token limit was exceeded
 */
export declare function isTokenLimitExceeded(span?: SpanRecord): boolean;
/**
 * Get a human-readable message for token limit exceeded
 */
export declare function getTokenLimitMessage(span?: SpanRecord): string;
