import type { StandardizedMessage } from '../../../conversion/hub/types/standardized.js';
import type { RouterMetadataInput } from '../types.js';
import type { RoutingInstructionState } from '../routing-instructions.js';
export declare const DEFAULT_STOP_MESSAGE_MAX_REPEATS = 10;
export declare function isStopScopeTraceEnabled(): boolean;
export declare function normalizeStopMessageStageMode(value: unknown): 'on' | 'off' | 'auto' | undefined;
export declare function normalizeStopMessageAiMode(value: unknown): 'on' | 'off' | undefined;
export declare function stripStopMessageFields(state: RoutingInstructionState): RoutingInstructionState;
export declare function stripClientInjectScopedFields(state: RoutingInstructionState): RoutingInstructionState;
export declare function hasClientInjectScopedFields(state: RoutingInstructionState | null | undefined): boolean;
export declare function hasRoutingInstructionMarker(messages: StandardizedMessage[]): boolean;
export declare function hasLatestUserRoutingInstructionMarker(messages: StandardizedMessage[]): boolean;
export declare function getLatestUserTextFromResponsesContext(context: unknown): string;
export declare function hasRoutingInstructionMarkerInResponsesContext(context: unknown): boolean;
export declare function cleanResponsesContextFromRoutingInstructions(context: unknown): void;
export declare function isServerToolFollowupRequest(metadata: RouterMetadataInput): boolean;
