import { extractToolCallsFromReasoningTextWithNative } from '../../router/virtual-router/engine-selection/native-shared-conversion-semantics.js';
function assertReasoningToolParserNativeAvailable() {
    if (typeof extractToolCallsFromReasoningTextWithNative !== 'function') {
        throw new Error('[reasoning-tool-parser] native bindings unavailable');
    }
}
export function extractToolCallsFromReasoningText(text, options) {
    assertReasoningToolParserNativeAvailable();
    const idPrefix = options?.idPrefix ?? 'reasoning';
    return extractToolCallsFromReasoningTextWithNative(String(text ?? ''), idPrefix);
}
