import type { PreRequestHook } from './pre-request';
export interface StripThinkingOptions {
    /**
     * Additional regex patterns to strip from assistant text parts.
     * These are applied as a fallback after structured `type: 'reasoning'` parts
     * are removed. Useful for models that embed reasoning as raw XML text.
     */
    textPatterns?: RegExp[];
    /** Whether to persist the stripping. Default: false (view-only) */
    persist?: boolean;
}
/**
 * Pre-request hook that strips reasoning from assistant messages.
 *
 * The AI SDK represents model reasoning (Claude extended thinking, OpenAI o1/o3)
 * as structured content parts with `type: 'reasoning'` in assistant message arrays.
 * This hook filters those parts out so the model doesn't re-read its own prior
 * chain-of-thought, saving context window tokens.
 *
 * Optionally also regex-strips text patterns (e.g. `<thinking>...</thinking>`)
 * for models that embed reasoning as raw text rather than structured parts.
 */
export declare function stripThinkingTokens(opts?: StripThinkingOptions): PreRequestHook;
//# sourceMappingURL=strip-thinking-tokens.d.ts.map