/** * WebComponent that listens on the `NavigateRouteEvent` event to be able to switch route. * * Use the "name" attribute to make this non-default target. * Use the "dialog" attribute to render routes inside a native `` element * with built-in focus trapping, backdrop, and Escape-to-close. * * @example * * */ export declare class RouteTarget extends HTMLElement { name?: string; private dialog?; connectedCallback(): void; disconnectedCallback(): void; private onNavigate; private loadComponent; /** * Waits for the route's component to be registered. * * `customElements.whenDefined` never rejects, so a tag name that is never * registered leaves the route waiting with nothing on screen and nothing in * the console. The warning breaks that silence without giving up on a * component that is merely slow to arrive. */ private whenComponentRegistered; /** * Puts the page on screen, animated with a view transition when the browser supports one. * * The browser drops the animation when the tab is hidden or when the visitor navigates again * before it has finished. That is normal browsing, not a failed navigation, so the dropped * animation is not reported. The visitor must still get the new page, so the swap is done * directly when the browser gave up before running it. */ private showPage; /** Closes the dialog (only applies to dialog targets). */ close(): void; private applyRouteData; }