UNPKG

@grafana/runtime

Version:
16 lines (15 loc) 355 B
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;