import { t as User } from "./User-1gKoYJvW.mjs";
import { scopes } from "virtual:wcz-layout";

//#region src/lib/auth/user.d.ts
declare const getUser: () => Promise<User | null>;
/**
 * Server-only token acquisition: a delegated access token for the given API
 * scope, minted from the user's session refresh token. Entra rotates the refresh
 * token on each use, so the rotated token is persisted back to the session. Use
 * inside server functions and middleware — it is stripped from the client bundle
 * and throws if called there.
 */
declare const getAccessToken: (scopeKey: keyof typeof scopes) => Promise<string>;
//#endregion
export { getUser as n, getAccessToken as t };
//# sourceMappingURL=user-BjHCUkBs.d.mts.map