//#region src/auth/returnPath.d.ts
/**
 * Where to send a visitor who just signed in: the path a guard sent them away
 * from, else where `auth.guard.alreadyAuthenticated` in softr.json points, else
 * `/`. Anything but a path on this app counts as missing. It always reloads the
 * page, so the router picks up the new session.
 *
 * @example
 * const location = useLocation()
 * navigate(toReturnPath(location))
 */
declare function toReturnPath(location: {
  search: Record<string, unknown>;
}): {
  href: string;
  reloadDocument: true;
};
//#endregion
export { toReturnPath };