import { r as routeParser } from './index-fd2b14ae.js';

// const appRoute = '/:spaceId(/:membershipId)(/:viewId)';
const activateMembershipRoute = '/:spaceId(/:membershipConfigId)(/:membershipId)(/:viewId)';
function getRouteParams(pathname) {
  return new routeParser(activateMembershipRoute).match(pathname);
}
function getActivateMembershipRouteParams(pathname) {
  return new routeParser(activateMembershipRoute).match(pathname);
}
function buildRoute(spaceId, membershipConfigId, membershipId, viewId) {
  // console.log(new Route(appRoute).reverse({ spaceId, membershipId, viewId }));
  return new routeParser(activateMembershipRoute).reverse({ spaceId, membershipConfigId, membershipId, viewId });
}
// export function navigate(path: string) {
//   history.pushState({}, null, path);
// }
// export function redirect(path: string) {
// history.pushState({}, null, path)
// location.pathname = path;
// }

export { getActivateMembershipRouteParams as a, buildRoute as b, getRouteParams as g };
