import { LitElement } from "lit"; import type { TemplateResult } from "lit"; import { UIRouterLit } from "./core.js"; interface UiRouterContextEventDetail { uiRouter?: UIRouterLit; } /** * @internal */ export type UiRouterContextEvent = CustomEvent; /** * @hideconstructor * * @slot - <ui-router> renders slotted content. * * @fires {CustomEvent} ui-router-context * * <ui-router> listens to the * ui-router-context event * and provides the uiRouter instance. * * @summary * * This is the root ui-router component. * */ export declare class UIRouterLitElement extends LitElement { /** * Root uiRouter singleton. * If not provided, the element creates and assigns a new instance. */ uiRouter: UIRouterLit | undefined; /** @internal */ static uiRouterContextEventName: string; /** @internal */ static uiRouterContextEvent(uiRouter?: UIRouterLit): UiRouterContextEvent; /** * Discovers the {@link UIRouterLit} instance provided by the nearest * enclosing <ui-router> element. * * Dispatches a bubbling, composed ui-router-context event from * the candidate element; the enclosing <ui-router> * answers it with its router instance. Returns undefined when * the candidate is not inside a <ui-router> (e.g. not * yet connected). * * This is the dependency-injection primitive for integrating external * reactivity systems (state stores, controllers) with the router context — * call it from hostConnected() / connectedCallback() * instead of prop-drilling the router instance. */ static seekRouter(candidate: Element): UIRouterLit | undefined; /** @internal */ static onUiRouterContextEvent(uiRouter?: UIRouterLit): (event: UiRouterContextEvent) => void; private readonly onUiRouterContextEvent; /** @internal */ connectedCallback(): void; /** @internal */ render(): TemplateResult; } export interface UIRouterLitElement { /** @internal */ constructor: typeof UIRouterLitElement; } export {}; //# sourceMappingURL=ui-router.d.ts.map