import { r as registerInstance, d as getElement } from './chunk-eb0263ab.js';
var NavPush = /** @class */ (function () {
    function NavPush(hostRef) {
        registerInstance(this, hostRef);
    }
    NavPush.prototype.push = function () {
        var nav = this.el.closest('ion-nav');
        var toPush = this.component;
        if (nav && toPush !== undefined) {
            nav.push(toPush, this.componentProps, { skipIfBusy: true });
        }
    };
    Object.defineProperty(NavPush.prototype, "el", {
        get: function () { return getElement(this); },
        enumerable: true,
        configurable: true
    });
    return NavPush;
}());
export { NavPush as ion_nav_push };
