@grafana/runtime
Version:
Grafana Runtime Library
16 lines (15 loc) • 355 B
TypeScript
import { CurrentUser } from '@grafana/data';
/**
* Used during startup by Grafana to set the current user so it is available
* for rbac checks.
*
* @internal
*/
export declare function setCurrentUser(instance: CurrentUser): void;
/**
* Used to retrieve the current user.
*
* @internal
*
*/
export declare function getCurrentUser(): CurrentUser;