import type { MaybePromise } from './resolver/types.t.js'; import type { Commands, RouteContext, Route, ActionResult, ChildrenCallback, WebComponentInterface } from './types.t.js'; /** * Action result describing an HTML element to render. * * @deprecated Use `HTMLElement`. */ export type ComponentResult = HTMLElement; /** * Route resolution context object, see {@link RouteContext}. * * @deprecated Use {@link RouteContext}. */ export type Context = RouteContext; /** * Route action callback function, see {@link Route.action}. * * @deprecated Use `NonNullable`. */ export type ActionFn = (this: Route, context: RouteContext, commands: Commands) => MaybePromise; /** * Route children callback function, see {@link ChildrenCallback}. * * @deprecated Use {@link ChildrenCallback}. */ export type ChildrenFn = ChildrenCallback; /** * Web component route interface with {@link onBeforeEnter} callback. * * @deprecated Use {@link WebComponentInterface}. */ export interface BeforeEnterObserver { /** * See {@link WebComponentInterface.onBeforeEnter} */ onBeforeEnter: NonNullable; } /** * Web component route interface with {@link onBeforeLeave} callback. * * @deprecated Use {@link WebComponentInterface}. */ export interface BeforeLeaveObserver { /** * See {@link WebComponentInterface.onBeforeLeave} */ onBeforeLeave: NonNullable; } /** * Web component route interface with {@link onAfterEnter} callback. * * @deprecated Use {@link WebComponentInterface}. */ export interface AfterEnterObserver { /** * See {@link WebComponentInterface.onAfterEnter} */ onAfterEnter: NonNullable; } /** * Web component route interface with {@link onAfterLeave} callback. * * @deprecated Use {@link WebComponentInterface}. */ export interface AfterLeaveObserver { /** * See {@link WebComponentInterface.onAfterLeave} */ onAfterLeave: NonNullable; } //# sourceMappingURL=v1-compat.t.d.ts.map