super-productivity/electron/overlay-indicator/overlay-api.d.ts
2025-06-27 14:22:27 +02:00

19 lines
381 B
TypeScript

interface OverlayContentData {
title: string;
time: string;
mode: 'pomodoro' | 'focus' | 'task' | 'idle';
}
interface OverlayAPI {
setIgnoreMouseEvents: (ignore: boolean) => void;
showMainWindow: () => void;
onUpdateContent: (callback: (data: OverlayContentData) => void) => void;
}
declare global {
interface Window {
overlayAPI: OverlayAPI;
}
}
export {};