import { Role } from "../types/policy.js";
import { Session, SessionId } from "../types/user.js";
/**
 * Changes the active role of an ongoing session.
 *
 * **Warning**: This only works for nonprivileged roles. Use `requestPrivilegedRoleSwitch` for privileged roles.
 * @param session The session to change the role of.
 * @param newRole The new role to switch to.
 * @returns The updated session.
 */
export default function switchRole(session: Session | SessionId, newRole: Role): Promise<Session>;
//# sourceMappingURL=switchRole.d.ts.map