import { PlayError } from "@xmachines/play/errors"; /** * The bridge throws this error when Vue Router cannot navigate to the path or to * the state ID that the actor requested. * * The error wraps a rejected `router.push()` promise. The `cause` property holds the * original Vue Router error, for example the rejection of a navigation guard. * * **Error code:** `PLAY_VUE_ROUTER_NAV_FAILED` * * @example * ```typescript * import { VueRouterNavigationError } from "@xmachines/play-vue-router/errors"; * * try { * actor.send({ type: "play.route", to: "#settings" }); * } catch (err) { * if (err instanceof VueRouterNavigationError) { * // Vue Router refused the push: a guard stopped it, a redirect replaced it, and so on. * console.error("Navigation rejected:", err.cause); * } * } * ``` */ export declare class VueRouterNavigationError extends PlayError { constructor(message: string, options?: ErrorOptions); } /** * The bridge throws this error when its Vue Router `afterEach` hook cannot build * or send the `play.route` event to the actor after a navigation that succeeded. * * The `cause` property holds the error below it. * * **Error code:** `PLAY_VUE_ROUTER_SEND_FAILED` */ export declare class VueRouterSendError extends PlayError { constructor(message: string, options?: ErrorOptions); } //# sourceMappingURL=errors.d.ts.map