import { failNativeRequired } from './native-router-hotpath-policy.js';
import { loadNativeRouterHotpathBindingForInternalUse } from './native-router-hotpath.js';
function resolveProxyConstructor() {
    const binding = loadNativeRouterHotpathBindingForInternalUse();
    const ctor = binding?.VirtualRouterEngineProxy;
    if (typeof ctor !== 'function') {
        return failNativeRequired('VirtualRouterEngineProxy', 'missing native proxy constructor');
    }
    return ctor;
}
export function createVirtualRouterEngineProxy(engine) {
    const Ctor = resolveProxyConstructor();
    return new Ctor(engine);
}
