-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtypes.d.ts
More file actions
34 lines (30 loc) · 976 Bytes
/
types.d.ts
File metadata and controls
34 lines (30 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type Statistics = {
cpuUsage: number;
ramUsage: number;
storageData: number;
}
type StaticData = {
totalStorage: number;
cpuModel: string;
totalMemoryGB: number;
}
type UnsubscribeFunction = () => void;
type EventPayloadMapping = {
statistics: Statistics;
getStaticData: StaticData;
"generate-session-title": string;
"get-recent-cwds": string[];
"select-directory": string | null;
}
interface Window {
electron: {
subscribeStatistics: (callback: (statistics: Statistics) => void) => UnsubscribeFunction;
getStaticData: () => Promise<StaticData>;
// Claude Agent IPC APIs
sendClientEvent: (event: any) => void;
onServerEvent: (callback: (event: any) => void) => UnsubscribeFunction;
generateSessionTitle: (userInput: string | null) => Promise<string>;
getRecentCwds: (limit?: number) => Promise<string[]>;
selectDirectory: () => Promise<string | null>;
}
}