@stack-inc/macos-notification-state
Version:
macOS notification state as a native node addon
7 lines (6 loc) • 343 B
TypeScript
declare module '@stack-inc/macos-notification-state' {
export function getNotificationState(): 'UNKNOWN_ERROR' | SessionState | 'DO_NOT_DISTURB';
export function getSessionState(): SessionState;
export function getDoNotDisturb(): boolean;
export type SessionState = 'SESSION_SCREEN_IS_LOCKED' | 'SESSION_ON_CONSOLE_KEY' | 'UNKNOWN';
}