@auroraview/sdk 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,306 @@
1
+ /**
2
+ * AuroraView SDK Core Types
3
+ *
4
+ * Type definitions for the AuroraView bridge API.
5
+ */
6
+ /** Event handler function */
7
+ type EventHandler<T = unknown> = (data: T) => void;
8
+ /** Unsubscribe function returned by event subscriptions */
9
+ type Unsubscribe = () => void;
10
+ /** State change handler function */
11
+ type StateChangeHandler = (key: string, value: unknown, source: 'python' | 'javascript') => void;
12
+ /** IPC message payload types */
13
+ type IPCMessageType = 'call' | 'event' | 'invoke';
14
+ /** Base IPC message structure */
15
+ interface IPCMessage {
16
+ type: IPCMessageType;
17
+ id?: string;
18
+ }
19
+ /** Call message (JS -> Python RPC) */
20
+ interface CallMessage extends IPCMessage {
21
+ type: 'call';
22
+ id: string;
23
+ method: string;
24
+ params?: unknown;
25
+ }
26
+ /** Event message (JS -> Python fire-and-forget) */
27
+ interface EventMessage extends IPCMessage {
28
+ type: 'event';
29
+ event: string;
30
+ detail?: unknown;
31
+ }
32
+ /** Invoke message (JS -> Python plugin command) */
33
+ interface InvokeMessage extends IPCMessage {
34
+ type: 'invoke';
35
+ id: string;
36
+ cmd: string;
37
+ args: Record<string, unknown>;
38
+ }
39
+ /** Call result from Python */
40
+ interface CallResult<T = unknown> {
41
+ id: string;
42
+ ok: boolean;
43
+ result?: T;
44
+ error?: CallErrorInfo;
45
+ }
46
+ /** Error information from failed calls */
47
+ interface CallErrorInfo {
48
+ name?: string;
49
+ message: string;
50
+ code?: string | number;
51
+ data?: unknown;
52
+ }
53
+ /** Plugin invoke result */
54
+ interface PluginResult<T = unknown> {
55
+ success?: boolean;
56
+ error?: string;
57
+ code?: string;
58
+ [key: string]: T | boolean | string | undefined;
59
+ }
60
+ /** Directory entry from readDir */
61
+ interface DirEntry {
62
+ name: string;
63
+ path: string;
64
+ isDir: boolean;
65
+ isFile: boolean;
66
+ size?: number;
67
+ modified?: number;
68
+ created?: number;
69
+ }
70
+ /** File stat result */
71
+ interface FileStat {
72
+ size: number;
73
+ isDir: boolean;
74
+ isFile: boolean;
75
+ isSymlink: boolean;
76
+ modified?: number;
77
+ created?: number;
78
+ accessed?: number;
79
+ readonly?: boolean;
80
+ }
81
+ /** File filter for dialogs */
82
+ interface FileFilter {
83
+ name: string;
84
+ extensions: string[];
85
+ }
86
+ /** Open file dialog options */
87
+ interface OpenFileOptions {
88
+ title?: string;
89
+ defaultPath?: string;
90
+ filters?: FileFilter[];
91
+ }
92
+ /** Open file result */
93
+ interface OpenFileResult {
94
+ path: string | null;
95
+ cancelled: boolean;
96
+ }
97
+ /** Open files result */
98
+ interface OpenFilesResult {
99
+ paths: string[];
100
+ cancelled: boolean;
101
+ }
102
+ /** Save file dialog options */
103
+ interface SaveFileOptions {
104
+ title?: string;
105
+ defaultPath?: string;
106
+ defaultName?: string;
107
+ filters?: FileFilter[];
108
+ }
109
+ /** Message dialog options */
110
+ interface MessageOptions {
111
+ message: string;
112
+ title?: string;
113
+ level?: 'info' | 'warning' | 'error';
114
+ buttons?: 'ok' | 'ok_cancel' | 'yes_no' | 'yes_no_cancel';
115
+ }
116
+ /** Message dialog result */
117
+ interface MessageResult {
118
+ response: 'ok' | 'cancel' | 'yes' | 'no';
119
+ }
120
+ /** Confirm dialog result */
121
+ interface ConfirmResult {
122
+ confirmed: boolean;
123
+ }
124
+ /** Shell execute options */
125
+ interface ExecuteOptions {
126
+ cwd?: string;
127
+ env?: Record<string, string>;
128
+ }
129
+ /** Shell execute result */
130
+ interface ExecuteResult {
131
+ code: number | null;
132
+ stdout: string;
133
+ stderr: string;
134
+ }
135
+ /** Shell spawn result */
136
+ interface SpawnResult {
137
+ success: boolean;
138
+ pid: number;
139
+ }
140
+ /** Process output event data */
141
+ interface ProcessOutput {
142
+ pid: number;
143
+ data: string;
144
+ }
145
+ /** Process exit event data */
146
+ interface ProcessExit {
147
+ pid: number;
148
+ code: number | null;
149
+ }
150
+ /** Window event types */
151
+ type WindowEventType = 'shown' | 'hidden' | 'focused' | 'blurred' | 'resized' | 'moved' | 'minimized' | 'maximized' | 'restored' | 'closing' | 'closed';
152
+ /** Window event data */
153
+ interface WindowEventData {
154
+ type: WindowEventType;
155
+ x?: number;
156
+ y?: number;
157
+ width?: number;
158
+ height?: number;
159
+ timestamp?: number;
160
+ }
161
+ declare global {
162
+ interface Window {
163
+ auroraview?: AuroraViewBridge;
164
+ ipc?: {
165
+ postMessage(message: string): void;
166
+ };
167
+ }
168
+ }
169
+ /** Raw bridge interface exposed on window.auroraview */
170
+ interface AuroraViewBridge {
171
+ _ready: boolean;
172
+ _isStub?: boolean;
173
+ _pendingCalls: unknown[];
174
+ _boundMethods: Record<string, boolean>;
175
+ call<T = unknown>(method: string, params?: unknown): Promise<T>;
176
+ invoke<T = unknown>(cmd: string, args?: Record<string, unknown>): Promise<T>;
177
+ send_event(event: string, detail?: unknown): void;
178
+ on(event: string, handler: EventHandler): Unsubscribe;
179
+ off?(event: string, handler?: EventHandler): void;
180
+ trigger(event: string, detail?: unknown): void;
181
+ whenReady(): Promise<AuroraViewBridge>;
182
+ isReady(): boolean;
183
+ isMethodBound?(fullMethodName: string): boolean;
184
+ getBoundMethods?(): string[];
185
+ _registerApiMethods?(namespace: string, methods: string[], options?: {
186
+ allowRebind?: boolean;
187
+ }): void;
188
+ /** Start native window drag (for frameless windows) */
189
+ startDrag?(): void;
190
+ api?: Record<string, (params?: unknown) => Promise<unknown>>;
191
+ state?: AuroraViewState;
192
+ fs?: FileSystemAPI;
193
+ dialog?: DialogAPI;
194
+ clipboard?: ClipboardAPI;
195
+ shell?: ShellAPI;
196
+ }
197
+ /** State proxy interface */
198
+ interface AuroraViewState {
199
+ [key: string]: unknown;
200
+ onChange(handler: StateChangeHandler): Unsubscribe;
201
+ offChange(handler: StateChangeHandler): void;
202
+ toJSON(): Record<string, unknown>;
203
+ keys(): string[];
204
+ }
205
+ /** File system API interface */
206
+ interface FileSystemAPI {
207
+ readFile(path: string, encoding?: string): Promise<string>;
208
+ readFileBinary(path: string): Promise<string>;
209
+ readFileBuffer(path: string): Promise<ArrayBuffer>;
210
+ writeFile(path: string, contents: string, append?: boolean): Promise<void>;
211
+ writeFileBinary(path: string, contents: ArrayBuffer | Uint8Array, append?: boolean): Promise<void>;
212
+ readDir(path: string, recursive?: boolean): Promise<DirEntry[]>;
213
+ createDir(path: string, recursive?: boolean): Promise<void>;
214
+ remove(path: string, recursive?: boolean): Promise<void>;
215
+ copy(from: string, to: string): Promise<void>;
216
+ rename(from: string, to: string): Promise<void>;
217
+ exists(path: string): Promise<boolean>;
218
+ stat(path: string): Promise<FileStat>;
219
+ }
220
+ /** Dialog API interface */
221
+ interface DialogAPI {
222
+ openFile(options?: OpenFileOptions): Promise<OpenFileResult>;
223
+ openFiles(options?: OpenFileOptions): Promise<OpenFilesResult>;
224
+ openFolder(options?: OpenFileOptions): Promise<OpenFileResult>;
225
+ openFolders(options?: OpenFileOptions): Promise<OpenFilesResult>;
226
+ saveFile(options?: SaveFileOptions): Promise<OpenFileResult>;
227
+ message(options: MessageOptions): Promise<MessageResult>;
228
+ confirm(options: {
229
+ message: string;
230
+ title?: string;
231
+ }): Promise<ConfirmResult>;
232
+ info(message: string, title?: string): Promise<MessageResult>;
233
+ warning(message: string, title?: string): Promise<MessageResult>;
234
+ error(message: string, title?: string): Promise<MessageResult>;
235
+ ask(message: string, title?: string): Promise<boolean>;
236
+ }
237
+ /** Clipboard API interface */
238
+ interface ClipboardAPI {
239
+ readText(): Promise<string>;
240
+ writeText(text: string): Promise<void>;
241
+ clear(): Promise<void>;
242
+ hasText(): Promise<boolean>;
243
+ readImage(): Promise<string | null>;
244
+ writeImage(base64: string): Promise<void>;
245
+ }
246
+ /** Shell API interface */
247
+ interface ShellAPI {
248
+ open(url: string): Promise<void>;
249
+ openPath(path: string): Promise<void>;
250
+ showInFolder(path: string): Promise<void>;
251
+ execute(command: string, args?: string[], options?: ExecuteOptions): Promise<ExecuteResult>;
252
+ spawn(command: string, args?: string[], options?: ExecuteOptions): Promise<SpawnResult>;
253
+ which(command: string): Promise<string | null>;
254
+ getEnv(name: string): Promise<string | null>;
255
+ getEnvAll(): Promise<Record<string, string>>;
256
+ }
257
+
258
+ /**
259
+ * AuroraView SDK Bridge Client
260
+ *
261
+ * Provides a type-safe wrapper around the native bridge API.
262
+ */
263
+
264
+ /**
265
+ * AuroraView client interface
266
+ */
267
+ interface AuroraViewClient {
268
+ /** Call a Python method (RPC-style) */
269
+ call<T = unknown>(method: string, params?: unknown): Promise<T>;
270
+ /** Invoke a plugin command */
271
+ invoke<T = unknown>(cmd: string, args?: Record<string, unknown>): Promise<T>;
272
+ /** Send an event to Python (fire-and-forget) */
273
+ emit(event: string, data?: unknown): void;
274
+ /** Subscribe to an event from Python */
275
+ on<T = unknown>(event: string, handler: EventHandler<T>): Unsubscribe;
276
+ /** Subscribe to an event once */
277
+ once<T = unknown>(event: string, handler: EventHandler<T>): Unsubscribe;
278
+ /** Unsubscribe from an event */
279
+ off(event: string, handler?: EventHandler): void;
280
+ /** Check if bridge is ready */
281
+ isReady(): boolean;
282
+ /** Wait for bridge to be ready */
283
+ whenReady(): Promise<AuroraViewClient>;
284
+ /** Get the raw bridge object */
285
+ getRawBridge(): AuroraViewBridge | undefined;
286
+ /** File system API */
287
+ readonly fs: FileSystemAPI | undefined;
288
+ /** Dialog API */
289
+ readonly dialog: DialogAPI | undefined;
290
+ /** Clipboard API */
291
+ readonly clipboard: ClipboardAPI | undefined;
292
+ /** Shell API */
293
+ readonly shell: ShellAPI | undefined;
294
+ /** Shared state */
295
+ readonly state: AuroraViewState | undefined;
296
+ }
297
+ /**
298
+ * Create or get the AuroraView client instance
299
+ */
300
+ declare function createAuroraView(): AuroraViewClient;
301
+ /**
302
+ * Get the AuroraView client instance (alias for createAuroraView)
303
+ */
304
+ declare function getAuroraView(): AuroraViewClient;
305
+
306
+ export { type AuroraViewClient as A, type CallMessage as C, type DirEntry as D, type EventHandler as E, type FileStat as F, type IPCMessage as I, type MessageOptions as M, type OpenFileOptions as O, type PluginResult as P, type StateChangeHandler as S, type Unsubscribe as U, type WindowEventType as W, type EventMessage as a, type InvokeMessage as b, createAuroraView as c, type CallResult as d, type CallErrorInfo as e, type FileFilter as f, getAuroraView as g, type OpenFileResult as h, type OpenFilesResult as i, type SaveFileOptions as j, type MessageResult as k, type ConfirmResult as l, type ExecuteOptions as m, type ExecuteResult as n, type SpawnResult as o, type ProcessOutput as p, type ProcessExit as q, type WindowEventData as r, type AuroraViewBridge as s, type AuroraViewState as t, type FileSystemAPI as u, type DialogAPI as v, type ClipboardAPI as w, type ShellAPI as x };
@@ -0,0 +1,306 @@
1
+ /**
2
+ * AuroraView SDK Core Types
3
+ *
4
+ * Type definitions for the AuroraView bridge API.
5
+ */
6
+ /** Event handler function */
7
+ type EventHandler<T = unknown> = (data: T) => void;
8
+ /** Unsubscribe function returned by event subscriptions */
9
+ type Unsubscribe = () => void;
10
+ /** State change handler function */
11
+ type StateChangeHandler = (key: string, value: unknown, source: 'python' | 'javascript') => void;
12
+ /** IPC message payload types */
13
+ type IPCMessageType = 'call' | 'event' | 'invoke';
14
+ /** Base IPC message structure */
15
+ interface IPCMessage {
16
+ type: IPCMessageType;
17
+ id?: string;
18
+ }
19
+ /** Call message (JS -> Python RPC) */
20
+ interface CallMessage extends IPCMessage {
21
+ type: 'call';
22
+ id: string;
23
+ method: string;
24
+ params?: unknown;
25
+ }
26
+ /** Event message (JS -> Python fire-and-forget) */
27
+ interface EventMessage extends IPCMessage {
28
+ type: 'event';
29
+ event: string;
30
+ detail?: unknown;
31
+ }
32
+ /** Invoke message (JS -> Python plugin command) */
33
+ interface InvokeMessage extends IPCMessage {
34
+ type: 'invoke';
35
+ id: string;
36
+ cmd: string;
37
+ args: Record<string, unknown>;
38
+ }
39
+ /** Call result from Python */
40
+ interface CallResult<T = unknown> {
41
+ id: string;
42
+ ok: boolean;
43
+ result?: T;
44
+ error?: CallErrorInfo;
45
+ }
46
+ /** Error information from failed calls */
47
+ interface CallErrorInfo {
48
+ name?: string;
49
+ message: string;
50
+ code?: string | number;
51
+ data?: unknown;
52
+ }
53
+ /** Plugin invoke result */
54
+ interface PluginResult<T = unknown> {
55
+ success?: boolean;
56
+ error?: string;
57
+ code?: string;
58
+ [key: string]: T | boolean | string | undefined;
59
+ }
60
+ /** Directory entry from readDir */
61
+ interface DirEntry {
62
+ name: string;
63
+ path: string;
64
+ isDir: boolean;
65
+ isFile: boolean;
66
+ size?: number;
67
+ modified?: number;
68
+ created?: number;
69
+ }
70
+ /** File stat result */
71
+ interface FileStat {
72
+ size: number;
73
+ isDir: boolean;
74
+ isFile: boolean;
75
+ isSymlink: boolean;
76
+ modified?: number;
77
+ created?: number;
78
+ accessed?: number;
79
+ readonly?: boolean;
80
+ }
81
+ /** File filter for dialogs */
82
+ interface FileFilter {
83
+ name: string;
84
+ extensions: string[];
85
+ }
86
+ /** Open file dialog options */
87
+ interface OpenFileOptions {
88
+ title?: string;
89
+ defaultPath?: string;
90
+ filters?: FileFilter[];
91
+ }
92
+ /** Open file result */
93
+ interface OpenFileResult {
94
+ path: string | null;
95
+ cancelled: boolean;
96
+ }
97
+ /** Open files result */
98
+ interface OpenFilesResult {
99
+ paths: string[];
100
+ cancelled: boolean;
101
+ }
102
+ /** Save file dialog options */
103
+ interface SaveFileOptions {
104
+ title?: string;
105
+ defaultPath?: string;
106
+ defaultName?: string;
107
+ filters?: FileFilter[];
108
+ }
109
+ /** Message dialog options */
110
+ interface MessageOptions {
111
+ message: string;
112
+ title?: string;
113
+ level?: 'info' | 'warning' | 'error';
114
+ buttons?: 'ok' | 'ok_cancel' | 'yes_no' | 'yes_no_cancel';
115
+ }
116
+ /** Message dialog result */
117
+ interface MessageResult {
118
+ response: 'ok' | 'cancel' | 'yes' | 'no';
119
+ }
120
+ /** Confirm dialog result */
121
+ interface ConfirmResult {
122
+ confirmed: boolean;
123
+ }
124
+ /** Shell execute options */
125
+ interface ExecuteOptions {
126
+ cwd?: string;
127
+ env?: Record<string, string>;
128
+ }
129
+ /** Shell execute result */
130
+ interface ExecuteResult {
131
+ code: number | null;
132
+ stdout: string;
133
+ stderr: string;
134
+ }
135
+ /** Shell spawn result */
136
+ interface SpawnResult {
137
+ success: boolean;
138
+ pid: number;
139
+ }
140
+ /** Process output event data */
141
+ interface ProcessOutput {
142
+ pid: number;
143
+ data: string;
144
+ }
145
+ /** Process exit event data */
146
+ interface ProcessExit {
147
+ pid: number;
148
+ code: number | null;
149
+ }
150
+ /** Window event types */
151
+ type WindowEventType = 'shown' | 'hidden' | 'focused' | 'blurred' | 'resized' | 'moved' | 'minimized' | 'maximized' | 'restored' | 'closing' | 'closed';
152
+ /** Window event data */
153
+ interface WindowEventData {
154
+ type: WindowEventType;
155
+ x?: number;
156
+ y?: number;
157
+ width?: number;
158
+ height?: number;
159
+ timestamp?: number;
160
+ }
161
+ declare global {
162
+ interface Window {
163
+ auroraview?: AuroraViewBridge;
164
+ ipc?: {
165
+ postMessage(message: string): void;
166
+ };
167
+ }
168
+ }
169
+ /** Raw bridge interface exposed on window.auroraview */
170
+ interface AuroraViewBridge {
171
+ _ready: boolean;
172
+ _isStub?: boolean;
173
+ _pendingCalls: unknown[];
174
+ _boundMethods: Record<string, boolean>;
175
+ call<T = unknown>(method: string, params?: unknown): Promise<T>;
176
+ invoke<T = unknown>(cmd: string, args?: Record<string, unknown>): Promise<T>;
177
+ send_event(event: string, detail?: unknown): void;
178
+ on(event: string, handler: EventHandler): Unsubscribe;
179
+ off?(event: string, handler?: EventHandler): void;
180
+ trigger(event: string, detail?: unknown): void;
181
+ whenReady(): Promise<AuroraViewBridge>;
182
+ isReady(): boolean;
183
+ isMethodBound?(fullMethodName: string): boolean;
184
+ getBoundMethods?(): string[];
185
+ _registerApiMethods?(namespace: string, methods: string[], options?: {
186
+ allowRebind?: boolean;
187
+ }): void;
188
+ /** Start native window drag (for frameless windows) */
189
+ startDrag?(): void;
190
+ api?: Record<string, (params?: unknown) => Promise<unknown>>;
191
+ state?: AuroraViewState;
192
+ fs?: FileSystemAPI;
193
+ dialog?: DialogAPI;
194
+ clipboard?: ClipboardAPI;
195
+ shell?: ShellAPI;
196
+ }
197
+ /** State proxy interface */
198
+ interface AuroraViewState {
199
+ [key: string]: unknown;
200
+ onChange(handler: StateChangeHandler): Unsubscribe;
201
+ offChange(handler: StateChangeHandler): void;
202
+ toJSON(): Record<string, unknown>;
203
+ keys(): string[];
204
+ }
205
+ /** File system API interface */
206
+ interface FileSystemAPI {
207
+ readFile(path: string, encoding?: string): Promise<string>;
208
+ readFileBinary(path: string): Promise<string>;
209
+ readFileBuffer(path: string): Promise<ArrayBuffer>;
210
+ writeFile(path: string, contents: string, append?: boolean): Promise<void>;
211
+ writeFileBinary(path: string, contents: ArrayBuffer | Uint8Array, append?: boolean): Promise<void>;
212
+ readDir(path: string, recursive?: boolean): Promise<DirEntry[]>;
213
+ createDir(path: string, recursive?: boolean): Promise<void>;
214
+ remove(path: string, recursive?: boolean): Promise<void>;
215
+ copy(from: string, to: string): Promise<void>;
216
+ rename(from: string, to: string): Promise<void>;
217
+ exists(path: string): Promise<boolean>;
218
+ stat(path: string): Promise<FileStat>;
219
+ }
220
+ /** Dialog API interface */
221
+ interface DialogAPI {
222
+ openFile(options?: OpenFileOptions): Promise<OpenFileResult>;
223
+ openFiles(options?: OpenFileOptions): Promise<OpenFilesResult>;
224
+ openFolder(options?: OpenFileOptions): Promise<OpenFileResult>;
225
+ openFolders(options?: OpenFileOptions): Promise<OpenFilesResult>;
226
+ saveFile(options?: SaveFileOptions): Promise<OpenFileResult>;
227
+ message(options: MessageOptions): Promise<MessageResult>;
228
+ confirm(options: {
229
+ message: string;
230
+ title?: string;
231
+ }): Promise<ConfirmResult>;
232
+ info(message: string, title?: string): Promise<MessageResult>;
233
+ warning(message: string, title?: string): Promise<MessageResult>;
234
+ error(message: string, title?: string): Promise<MessageResult>;
235
+ ask(message: string, title?: string): Promise<boolean>;
236
+ }
237
+ /** Clipboard API interface */
238
+ interface ClipboardAPI {
239
+ readText(): Promise<string>;
240
+ writeText(text: string): Promise<void>;
241
+ clear(): Promise<void>;
242
+ hasText(): Promise<boolean>;
243
+ readImage(): Promise<string | null>;
244
+ writeImage(base64: string): Promise<void>;
245
+ }
246
+ /** Shell API interface */
247
+ interface ShellAPI {
248
+ open(url: string): Promise<void>;
249
+ openPath(path: string): Promise<void>;
250
+ showInFolder(path: string): Promise<void>;
251
+ execute(command: string, args?: string[], options?: ExecuteOptions): Promise<ExecuteResult>;
252
+ spawn(command: string, args?: string[], options?: ExecuteOptions): Promise<SpawnResult>;
253
+ which(command: string): Promise<string | null>;
254
+ getEnv(name: string): Promise<string | null>;
255
+ getEnvAll(): Promise<Record<string, string>>;
256
+ }
257
+
258
+ /**
259
+ * AuroraView SDK Bridge Client
260
+ *
261
+ * Provides a type-safe wrapper around the native bridge API.
262
+ */
263
+
264
+ /**
265
+ * AuroraView client interface
266
+ */
267
+ interface AuroraViewClient {
268
+ /** Call a Python method (RPC-style) */
269
+ call<T = unknown>(method: string, params?: unknown): Promise<T>;
270
+ /** Invoke a plugin command */
271
+ invoke<T = unknown>(cmd: string, args?: Record<string, unknown>): Promise<T>;
272
+ /** Send an event to Python (fire-and-forget) */
273
+ emit(event: string, data?: unknown): void;
274
+ /** Subscribe to an event from Python */
275
+ on<T = unknown>(event: string, handler: EventHandler<T>): Unsubscribe;
276
+ /** Subscribe to an event once */
277
+ once<T = unknown>(event: string, handler: EventHandler<T>): Unsubscribe;
278
+ /** Unsubscribe from an event */
279
+ off(event: string, handler?: EventHandler): void;
280
+ /** Check if bridge is ready */
281
+ isReady(): boolean;
282
+ /** Wait for bridge to be ready */
283
+ whenReady(): Promise<AuroraViewClient>;
284
+ /** Get the raw bridge object */
285
+ getRawBridge(): AuroraViewBridge | undefined;
286
+ /** File system API */
287
+ readonly fs: FileSystemAPI | undefined;
288
+ /** Dialog API */
289
+ readonly dialog: DialogAPI | undefined;
290
+ /** Clipboard API */
291
+ readonly clipboard: ClipboardAPI | undefined;
292
+ /** Shell API */
293
+ readonly shell: ShellAPI | undefined;
294
+ /** Shared state */
295
+ readonly state: AuroraViewState | undefined;
296
+ }
297
+ /**
298
+ * Create or get the AuroraView client instance
299
+ */
300
+ declare function createAuroraView(): AuroraViewClient;
301
+ /**
302
+ * Get the AuroraView client instance (alias for createAuroraView)
303
+ */
304
+ declare function getAuroraView(): AuroraViewClient;
305
+
306
+ export { type AuroraViewClient as A, type CallMessage as C, type DirEntry as D, type EventHandler as E, type FileStat as F, type IPCMessage as I, type MessageOptions as M, type OpenFileOptions as O, type PluginResult as P, type StateChangeHandler as S, type Unsubscribe as U, type WindowEventType as W, type EventMessage as a, type InvokeMessage as b, createAuroraView as c, type CallResult as d, type CallErrorInfo as e, type FileFilter as f, getAuroraView as g, type OpenFileResult as h, type OpenFilesResult as i, type SaveFileOptions as j, type MessageResult as k, type ConfirmResult as l, type ExecuteOptions as m, type ExecuteResult as n, type SpawnResult as o, type ProcessOutput as p, type ProcessExit as q, type WindowEventData as r, type AuroraViewBridge as s, type AuroraViewState as t, type FileSystemAPI as u, type DialogAPI as v, type ClipboardAPI as w, type ShellAPI as x };