import type { RunContext, StopCondition, StopConditionResult } from '../types/index.js'; export declare function maxSteps(n: number): StopCondition; export declare function tokenBudget(budget: number): StopCondition; export declare function timeout(ms: number): StopCondition; export declare function consecutiveErrors(n: number): StopCondition; export declare function loopDetection(windowSize?: number): StopCondition; export declare function sameToolRepetition(maxRepeats?: number): StopCondition; export declare function maxHandoffs(n: number): StopCondition; export declare function taskComplete(phrases: string[]): StopCondition; export declare function anyOf(...conditions: StopCondition[]): StopCondition; export declare function allOf(...conditions: StopCondition[]): StopCondition; export declare const defaultStopConditions: StopCondition[]; export declare function checkStopConditions(context: RunContext, conditions: StopCondition[]): StopConditionResult;