import { type PropType } from "vue"; import type { VNodeChild } from "vue"; import type { Router } from "vue-router"; import type { ParsedPattern, KeyValueCache, URLPatternLike } from "@xmachines/play-router"; import type { RouteMap, RoutableActor } from "@xmachines/play-router"; export type { RoutableActor }; /** * PlayRouterProvider — the Vue wrapper of VueRouterBridge. * * Note: the `defineComponent` function of Vue accepts no generic type parameter. * Therefore the renderer prop has the `RoutableActor` constraint. Give a concrete * actor, and TypeScript checks its structure at the call site. */ export declare const PlayRouterProvider: import("vue").DefineComponent; required: true; }; routeMap: { type: PropType; required: true; }; router: { type: PropType; required: true; }; /** * Mount the machine's routes under a URL prefix the host owns, so * host-controlled routes and machine-controlled routes can share one router. * * The prop is reactive and it does NOT rebuild the bridge: a change re-points * the live bridge via `setBasePath()`. A location outside the prefix is left * entirely to the host — the bridge sends no event and corrects no URL there. * * Every `:param` must have a value: an unresolved one throws * `MissingBasePathParamError` from `setup()`, because the bridge cannot write a * URL without it. Render this component only once the host has the value. */ basePath: { type: StringConstructor; required: false; default: undefined; }; /** The values of the `:param` segments of `basePath`, e.g. `{ machineId }`. */ basePathParams: { type: PropType>; required: false; default: undefined; }; /** * The cache of the PARSE of a route pattern, for the bridge that this provider * builds. The default is the cache that `@xmachines/play-pattern` shares with every * caller of the process. A server that renders for one tenant at a time passes a * cache that the tenant owns, so one tenant evicts the entries of no other. */ patternCache: { type: PropType>; required: false; default: undefined; }; /** * The cache of the COMPILED `URLPattern`. Pass it together with `patternCache`: the * compiled cache is read FIRST, so a parse cache alone isolates nothing once another * caller has compiled the same pattern. */ compiledCache: { type: PropType>; required: false; default: undefined; }; renderer: { type: PropType<(actor: RoutableActor, router: Router) => VNodeChild>; required: true; }; }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; required: true; }; routeMap: { type: PropType; required: true; }; router: { type: PropType; required: true; }; /** * Mount the machine's routes under a URL prefix the host owns, so * host-controlled routes and machine-controlled routes can share one router. * * The prop is reactive and it does NOT rebuild the bridge: a change re-points * the live bridge via `setBasePath()`. A location outside the prefix is left * entirely to the host — the bridge sends no event and corrects no URL there. * * Every `:param` must have a value: an unresolved one throws * `MissingBasePathParamError` from `setup()`, because the bridge cannot write a * URL without it. Render this component only once the host has the value. */ basePath: { type: StringConstructor; required: false; default: undefined; }; /** The values of the `:param` segments of `basePath`, e.g. `{ machineId }`. */ basePathParams: { type: PropType>; required: false; default: undefined; }; /** * The cache of the PARSE of a route pattern, for the bridge that this provider * builds. The default is the cache that `@xmachines/play-pattern` shares with every * caller of the process. A server that renders for one tenant at a time passes a * cache that the tenant owns, so one tenant evicts the entries of no other. */ patternCache: { type: PropType>; required: false; default: undefined; }; /** * The cache of the COMPILED `URLPattern`. Pass it together with `patternCache`: the * compiled cache is read FIRST, so a parse cache alone isolates nothing once another * caller has compiled the same pattern. */ compiledCache: { type: PropType>; required: false; default: undefined; }; renderer: { type: PropType<(actor: RoutableActor, router: Router) => VNodeChild>; required: true; }; }>> & Readonly<{}>, { compiledCache: KeyValueCache; basePath: string; basePathParams: Record; patternCache: KeyValueCache; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; //# sourceMappingURL=play-router-provider.d.ts.map