@pulsar-edit/types 1.128.1

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.
Files changed (87) hide show
  1. package/.github/workflows/publish.yml +33 -0
  2. package/LICENSE.md +8 -0
  3. package/README.md +187 -0
  4. package/atom-i18n/config.d.ts +9 -0
  5. package/atom-i18n/index.d.ts +4 -0
  6. package/autocomplete-plus/config.d.ts +140 -0
  7. package/autocomplete-plus/index.d.ts +200 -0
  8. package/dependencies/event-kit/index.d.ts +143 -0
  9. package/dependencies/first-mate/index.d.ts +1 -0
  10. package/dependencies/first-mate/src/first-mate.d.ts +1 -0
  11. package/dependencies/first-mate/src/grammar.d.ts +119 -0
  12. package/dependencies/pathwatcher/index.d.ts +1 -0
  13. package/dependencies/pathwatcher/src/directory.d.ts +98 -0
  14. package/dependencies/pathwatcher/src/file.d.ts +115 -0
  15. package/dependencies/pathwatcher/src/main.d.ts +2 -0
  16. package/dependencies/service-hub/index.d.ts +3 -0
  17. package/dependencies/service-hub/src/consumer.d.ts +8 -0
  18. package/dependencies/service-hub/src/provider.d.ts +14 -0
  19. package/dependencies/service-hub/src/service-hub.d.ts +46 -0
  20. package/dependencies/service-hub/src/util.d.ts +1 -0
  21. package/dependencies/text-buffer/index.d.ts +1 -0
  22. package/dependencies/text-buffer/src/display-marker-layer.d.ts +182 -0
  23. package/dependencies/text-buffer/src/display-marker.d.ts +232 -0
  24. package/dependencies/text-buffer/src/helpers.d.ts +11 -0
  25. package/dependencies/text-buffer/src/marker-layer.d.ts +117 -0
  26. package/dependencies/text-buffer/src/marker.d.ts +207 -0
  27. package/dependencies/text-buffer/src/point.d.ts +102 -0
  28. package/dependencies/text-buffer/src/range.d.ts +141 -0
  29. package/dependencies/text-buffer/src/text-buffer.d.ts +759 -0
  30. package/index.d.ts +72 -0
  31. package/linter/config.d.ts +26 -0
  32. package/linter/index.d.ts +108 -0
  33. package/package.json +61 -0
  34. package/src/atom-environment.d.ts +361 -0
  35. package/src/branding.d.ts +19 -0
  36. package/src/buffered-node-process.d.ts +10 -0
  37. package/src/buffered-process.d.ts +88 -0
  38. package/src/clipboard.d.ts +14 -0
  39. package/src/color.d.ts +11 -0
  40. package/src/command-registry.d.ts +118 -0
  41. package/src/config-schema.d.ts +271 -0
  42. package/src/config.d.ts +168 -0
  43. package/src/context-menu-manager.d.ts +65 -0
  44. package/src/cursor.d.ts +252 -0
  45. package/src/decoration.d.ts +156 -0
  46. package/src/deserializer-manager.d.ts +15 -0
  47. package/src/dock.d.ts +121 -0
  48. package/src/get-window-load-settings.d.ts +26 -0
  49. package/src/git-repository.d.ts +174 -0
  50. package/src/grammar-registry.d.ts +241 -0
  51. package/src/gutter.d.ts +118 -0
  52. package/src/history-manager.d.ts +28 -0
  53. package/src/keymap-extensions.d.ts +190 -0
  54. package/src/language-mode.d.ts +314 -0
  55. package/src/layer-decoration.d.ts +31 -0
  56. package/src/menu-manager.d.ts +24 -0
  57. package/src/notification-manager.d.ts +37 -0
  58. package/src/notification.d.ts +79 -0
  59. package/src/other-types.d.ts +283 -0
  60. package/src/package-manager.d.ts +103 -0
  61. package/src/package.d.ts +33 -0
  62. package/src/pane.d.ts +604 -0
  63. package/src/panel.d.ts +38 -0
  64. package/src/path-watcher.d.ts +35 -0
  65. package/src/project.d.ts +110 -0
  66. package/src/scope-descriptor.d.ts +8 -0
  67. package/src/selection.d.ts +341 -0
  68. package/src/style-manager.d.ts +68 -0
  69. package/src/task.d.ts +38 -0
  70. package/src/text-editor-component.d.ts +15 -0
  71. package/src/text-editor-element.d.ts +48 -0
  72. package/src/text-editor-registry.d.ts +48 -0
  73. package/src/text-editor.d.ts +1416 -0
  74. package/src/theme-manager.d.ts +29 -0
  75. package/src/tooltip-manager.d.ts +42 -0
  76. package/src/tooltip.d.ts +63 -0
  77. package/src/ui.d.ts +101 -0
  78. package/src/view-registry.d.ts +34 -0
  79. package/src/wasm-tree-sitter-grammar.d.ts +305 -0
  80. package/src/wasm-tree-sitter-language-mode.d.ts +294 -0
  81. package/src/workspace-center.d.ts +117 -0
  82. package/src/workspace.d.ts +485 -0
  83. package/status-bar/config.d.ts +23 -0
  84. package/status-bar/index.d.ts +51 -0
  85. package/tool-bar/config.d.ts +20 -0
  86. package/tool-bar/index.d.ts +235 -0
  87. package/tsconfig.json +8 -0
package/index.d.ts ADDED
@@ -0,0 +1,72 @@
1
+ // NOTE: Only those classes exported within this file should retain that status
2
+ // below.
3
+ // https://github.com/pulsar-edit/pulsar/blob/v1.128.0/exports/atom.js
4
+
5
+ /// <reference types="node" />
6
+
7
+ import { AtomEnvironment } from "./src/atom-environment";
8
+ import { TextEditorElement } from "./src/text-editor-element";
9
+
10
+ // Imports ======================================================
11
+ declare global {
12
+ const atom: AtomEnvironment;
13
+
14
+ interface HTMLElementTagNameMap {
15
+ "atom-text-editor": TextEditorElement;
16
+ }
17
+ }
18
+
19
+ export * from "./dependencies/event-kit";
20
+ export * from "./dependencies/first-mate";
21
+ export * from "./dependencies/pathwatcher";
22
+ export * from "./dependencies/text-buffer";
23
+ export { ServiceHub } from "./dependencies/service-hub";
24
+ export * from "./src/atom-environment";
25
+ export * from './src/branding';
26
+ export * from "./src/buffered-node-process";
27
+ export * from "./src/buffered-process";
28
+ export * from "./src/clipboard";
29
+ export * from "./src/color";
30
+ export * from "./src/command-registry";
31
+ export * from "./src/config";
32
+ export * from "./src/config-schema";
33
+ export * from "./src/context-menu-manager";
34
+ export * from "./src/cursor";
35
+ export * from "./src/decoration";
36
+ export * from "./src/deserializer-manager";
37
+ export * from "./src/dock";
38
+ export * from "./src/get-window-load-settings";
39
+ export * from "./src/git-repository";
40
+ export * from "./src/grammar-registry";
41
+ export * from "./src/gutter";
42
+ export * from "./src/history-manager";
43
+ export * from "./src/keymap-extensions";
44
+ export * from "./src/language-mode";
45
+ export * from "./src/layer-decoration";
46
+ export * from "./src/menu-manager";
47
+ export * from "./src/notification";
48
+ export * from "./src/notification-manager";
49
+ export * from "./src/other-types";
50
+ export * from "./src/package";
51
+ export * from "./src/package-manager";
52
+ export * from "./src/pane";
53
+ export * from "./src/panel";
54
+ export * from "./src/path-watcher";
55
+ export * from "./src/project";
56
+ export * from "./src/scope-descriptor";
57
+ export * from "./src/selection";
58
+ export * from "./src/style-manager";
59
+ export * from "./src/task";
60
+ export * from "./src/text-editor";
61
+ export * from "./src/text-editor-component";
62
+ export * from "./src/text-editor-element";
63
+ export * from "./src/text-editor-registry";
64
+ export * from "./src/theme-manager";
65
+ export * from "./src/tooltip";
66
+ export * from "./src/tooltip-manager";
67
+ export * from "./src/view-registry";
68
+ export * from "./src/ui";
69
+ export { WASMTreeSitterGrammar } from './src/wasm-tree-sitter-grammar';
70
+ export { WASMTreeSitterLanguageMode } from './src/wasm-tree-sitter-language-mode';
71
+ export * from "./src/workspace";
72
+ export * from "./src/workspace-center";
@@ -0,0 +1,26 @@
1
+ import "../index";
2
+
3
+ declare module "atom" {
4
+ interface ConfigValues {
5
+ /** Lint tabs while they are still in preview status. */
6
+ "linter.lintPreviewTabs": boolean;
7
+
8
+ /** Lint files automatically when they are opened. */
9
+ "linter.lintOnOpen": boolean;
10
+
11
+ /**
12
+ * Lint files while typing, without the need to save (only for supported
13
+ * providers).
14
+ */
15
+ "linter.lintOnChange": boolean;
16
+
17
+ /** Interval at which linting is done as you type (in ms). */
18
+ "linter.lintOnChangeInterval": number;
19
+
20
+ /** Ignore files matching this Glob. */
21
+ "linter.ignoreGlob": string;
22
+
23
+ /** Disabled providers. */
24
+ "linter.disabledProviders": string[];
25
+ }
26
+ }
@@ -0,0 +1,108 @@
1
+ // Linter 2.x
2
+ // https://web.pulsar-edit.dev/packages/linter
3
+
4
+ /// <reference path="./config.d.ts" />
5
+
6
+ import { Disposable, Point, Range, TextEditor } from "../index";
7
+
8
+ export interface Config {
9
+ name: string;
10
+ }
11
+
12
+ export interface ReplacementSolution {
13
+ title?: string;
14
+ position: Range;
15
+ priority?: number;
16
+ currentText?: string;
17
+ replaceWith: string;
18
+ }
19
+
20
+ export interface CallbackSolution {
21
+ title?: string;
22
+ position: Range;
23
+ priority?: number;
24
+ apply(): any;
25
+ }
26
+
27
+ export type MessageSolution = ReplacementSolution | CallbackSolution;
28
+
29
+ export interface Message {
30
+ /** The location of the issue (aka where to highlight). */
31
+ location: {
32
+ /** The path to the file to which the message applies. */
33
+ file: string;
34
+
35
+ /** The range of the message in the editor. */
36
+ position: Range;
37
+ };
38
+
39
+ /** A reference to a different location in the editor. */
40
+ reference?: {
41
+ /** The path to the file being referenced. */
42
+ file: string;
43
+
44
+ /** The point being referenced in that file. */
45
+ position?: Point;
46
+ };
47
+
48
+ /**
49
+ * An HTTP link to a resource explaining the issue. Default is a google
50
+ * search.
51
+ */
52
+ url?: string;
53
+
54
+ /** The name of the octicon to show in the gutter. */
55
+ icon?: string;
56
+
57
+ /** The message's key. */
58
+ key?: string;
59
+
60
+ /** The API version under which this message operates. */
61
+ version?: number;
62
+
63
+ /** The text for the message. */
64
+ excerpt: string;
65
+
66
+ /** The severity level for the message. */
67
+ severity: "error" | "warning" | "info";
68
+
69
+ /** Possible solutions (which the user can invoke at will). */
70
+ solutions?:
71
+ | Array<MessageSolution>
72
+ | Promise<Array<MessageSolution>>
73
+ | (() => Promise<Array<MessageSolution>>);
74
+
75
+ /**
76
+ * Markdown long description of the error. Accepts a callback so that you can
77
+ * do things like HTTP requests.
78
+ */
79
+ description?: string | (() => Promise<string> | string);
80
+
81
+ /**
82
+ * Optionally override the displayed linter name. Defaults to provider name.
83
+ */
84
+ linterName?: string;
85
+ }
86
+
87
+ export interface IndieDelegate {
88
+ name: string;
89
+ getMessages(): Message[];
90
+ clearMessages(): void;
91
+ setMessages(filePath: string, messages: Message[]): void;
92
+ setAllMessages(messages: Message[]): void;
93
+ onDidUpdate(callback: () => void): Disposable;
94
+ onDidDestroy(callback: () => void): Disposable;
95
+ dispose(): void;
96
+ }
97
+
98
+ export type LintResult = Message[] | null;
99
+
100
+ export interface LinterProvider {
101
+ name: string;
102
+ scope: "file" | "project";
103
+ lintsOnChange: boolean;
104
+ grammarScopes: string[];
105
+ lint(editor: TextEditor): LintResult | Promise<LintResult>;
106
+ }
107
+
108
+ export type IndieProvider = (register: (config: Config) => IndieDelegate) => void;
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@pulsar-edit/types",
3
+ "version": "1.128.1",
4
+ "description": "TypeScript definitions for Pulsar",
5
+ "homepage": "https://github.com/pulsar-edit/types",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "pulsar-edit",
9
+ "typescript",
10
+ "types"
11
+ ],
12
+ "contributors": [
13
+ {
14
+ "name": "GlenCFL",
15
+ "githubUsername": "GlenCFL",
16
+ "url": "https://github.com/GlenCFL"
17
+ },
18
+ {
19
+ "name": "smhxx",
20
+ "githubUsername": "smhxx",
21
+ "url": "https://github.com/smhxx"
22
+ },
23
+ {
24
+ "name": "lierdakil",
25
+ "githubUsername": "lierdakil",
26
+ "url": "https://github.com/lierdakil"
27
+ },
28
+ {
29
+ "name": "aminya",
30
+ "githubUsername": "aminya",
31
+ "url": "https://github.com/aminya"
32
+ },
33
+ {
34
+ "name": "savetheclocktower",
35
+ "githubUsername": "savetheclocktower",
36
+ "url": "https://github.com/savetheclocktower"
37
+ }
38
+ ],
39
+ "main": "./index.d.ts",
40
+ "types": "./index.d.ts",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/pulsar-edit/types.git"
44
+ },
45
+ "scripts": {
46
+ "test": "tsc --noEmit index.d.ts"
47
+ },
48
+ "dependencies": {
49
+ "@types/emscripten": "^1.40.1",
50
+ "@types/node": "*",
51
+ "@types/semver": "^5.5.0",
52
+ "web-tree-sitter": "^0.25.3"
53
+ },
54
+ "peerDependencies": {
55
+ "typescript": ">= 4.0.0"
56
+ },
57
+ "devDependencies": {
58
+ "@arethetypeswrong/cli": "^0.18.2",
59
+ "typescript": "^5.8.3"
60
+ }
61
+ }
@@ -0,0 +1,361 @@
1
+ import {
2
+ Branding,
3
+ Clipboard,
4
+ CommandRegistry,
5
+ Config,
6
+ ContextMenuManager,
7
+ DeserializerManager,
8
+ Disposable,
9
+ GrammarRegistry,
10
+ HistoryManager,
11
+ KeymapManager,
12
+ MenuManager,
13
+ NotificationManager,
14
+ PackageManager,
15
+ Project,
16
+ StyleManager,
17
+ TextEditorRegistry,
18
+ ThemeManager,
19
+ TooltipManager,
20
+ ViewRegistry,
21
+ WindowLoadSettings,
22
+ Workspace,
23
+ UI
24
+ } from "../index";
25
+
26
+
27
+ /**
28
+ * Atom global for dealing with packages, themes, menus, and the window.
29
+ * An instance of this class is always available as the atom global.
30
+ */
31
+ export interface AtomEnvironment {
32
+ // Properties
33
+ /** Branding information. */
34
+ readonly branding: Branding;
35
+
36
+ /** A CommandRegistry instance. */
37
+ readonly commands: CommandRegistry;
38
+
39
+ /** A Config instance. */
40
+ readonly config: Config;
41
+
42
+ /** A Clipboard instance. */
43
+ readonly clipboard: Clipboard;
44
+
45
+ /** A ContextMenuManager instance. */
46
+ readonly contextMenu: ContextMenuManager;
47
+
48
+ /** A MenuManager instance. */
49
+ readonly menu: MenuManager;
50
+
51
+ /** A KeymapManager instance. */
52
+ readonly keymaps: KeymapManager;
53
+
54
+ /** A TooltipManager instance. */
55
+ readonly tooltips: TooltipManager;
56
+
57
+ /** A NotificationManager instance. */
58
+ readonly notifications: NotificationManager;
59
+
60
+ /** A Project instance. */
61
+ readonly project: Project;
62
+
63
+ /** A GrammarRegistry instance. */
64
+ readonly grammars: GrammarRegistry;
65
+
66
+ /** A HistoryManager instance. */
67
+ readonly history: HistoryManager;
68
+
69
+ /** A PackageManager instance. */
70
+ readonly packages: PackageManager;
71
+
72
+ /** A ThemeManager instance. */
73
+ readonly themes: ThemeManager;
74
+
75
+ /** A StyleManager instance. */
76
+ readonly styles: StyleManager;
77
+
78
+ /** A DeserializerManager instance. */
79
+ readonly deserializers: DeserializerManager;
80
+
81
+ /** A ViewRegistry instance. */
82
+ readonly views: ViewRegistry;
83
+
84
+ /** A Workspace instance. */
85
+ readonly workspace: Workspace;
86
+
87
+ /** A TextEditorRegistry instance. */
88
+ readonly textEditors: TextEditorRegistry;
89
+
90
+ /** A UI module. */
91
+ readonly ui: UI;
92
+
93
+ // Event Subscription
94
+ /** Invoke the given callback whenever ::beep is called. */
95
+ onDidBeep(callback: () => void): Disposable;
96
+
97
+ /**
98
+ * Invoke the given callback when there is an unhandled error, but before
99
+ * the devtools pop open.
100
+ */
101
+ onWillThrowError(callback: (event: PreventableExceptionThrownEvent) => void): Disposable;
102
+
103
+ /** Invoke the given callback whenever there is an unhandled error. */
104
+ onDidThrowError(callback: (event: ExceptionThrownEvent) => void): Disposable;
105
+
106
+ /**
107
+ * Invoke the given callback as soon as the shell environment is loaded (or
108
+ * immediately if it was already loaded).
109
+ */
110
+ whenShellEnvironmentLoaded(callback: () => void): Disposable;
111
+
112
+ // Atom Details
113
+ /** Returns a boolean that is true if the current window is in development mode. */
114
+ inDevMode(): boolean;
115
+
116
+ /** Returns a boolean that is true if the current window is in safe mode. */
117
+ inSafeMode(): boolean;
118
+
119
+ /** Returns a boolean that is true if the current window is running specs. */
120
+ inSpecMode(): boolean;
121
+
122
+ /** Get the full name of this Atom release (e.g. "Atom", "Atom Beta") */
123
+ getAppName(): string;
124
+
125
+ /** Get the version of the Atom application. */
126
+ getVersion(): string;
127
+
128
+ /**
129
+ * Gets the release channel of the Atom application.
130
+ * Returns the release channel, which can be 'dev', 'nightly', 'beta', or 'stable'.
131
+ */
132
+ getReleaseChannel(): "dev" | "nightly" | "beta" | "stable";
133
+
134
+ /** Returns a boolean that is true if the current version is an official release. */
135
+ isReleasedVersion(): boolean;
136
+
137
+ /** Get the time taken to completely load the current window. */
138
+ getWindowLoadTime(): number;
139
+
140
+ /** Get the all the markers with the information about startup time. */
141
+ getStartupMarkers(): TimingMarker[];
142
+
143
+ /** Get the load settings for the current window. */
144
+ getLoadSettings(): WindowLoadSettings;
145
+
146
+ // Managing the Atom Window
147
+ /** Open a new Atom window using the given options. */
148
+ open(params?: {
149
+ pathsToOpen: readonly string[];
150
+ newWindow?: boolean | undefined;
151
+ devMode?: boolean | undefined;
152
+ safeMode?: boolean | undefined;
153
+ }): void;
154
+
155
+ /** Close the current window. */
156
+ close(): void;
157
+
158
+ /** Get the size of current window. */
159
+ getSize(): { width: number; height: number };
160
+
161
+ /** Set the size of current window. */
162
+ setSize(width: number, height: number): void;
163
+
164
+ /** Get the position of current window. */
165
+ getPosition(): { x: number; y: number };
166
+
167
+ /** Set the position of current window. */
168
+ setPosition(x: number, y: number): void;
169
+
170
+ /** Prompt the user to select one or more folders. */
171
+ pickFolder(callback: (paths: string[] | null) => void): void;
172
+
173
+ /** Get the current window. */
174
+ getCurrentWindow(): object;
175
+
176
+ /** Move current window to the center of the screen. */
177
+ center(): void;
178
+
179
+ /** Focus the current window. */
180
+ focus(): void;
181
+
182
+ /** Show the current window. */
183
+ show(): void;
184
+
185
+ /** Hide the current window. */
186
+ hide(): void;
187
+
188
+ /** Reload the current window. */
189
+ reload(): void;
190
+
191
+ /** Relaunch the entire application. */
192
+ restartApplication(): void;
193
+
194
+ /** Returns a boolean that is true if the current window is maximized. */
195
+ isMaximized(): boolean;
196
+
197
+ /** Returns a boolean that is true if the current window is in full screen mode. */
198
+ isFullScreen(): boolean;
199
+
200
+ /** Set the full screen state of the current window. */
201
+ setFullScreen(fullScreen: boolean): void;
202
+
203
+ /** Toggle the full screen state of the current window. */
204
+ toggleFullScreen(): void;
205
+
206
+ /**
207
+ * Restores the full screen and maximized state after the window has resized to prevent resize
208
+ * glitches.
209
+ */
210
+ displayWindow(): Promise<undefined>;
211
+
212
+ /** Get the dimensions of this window. */
213
+ getWindowDimensions(): { x: number; y: number; width: number; height: number };
214
+
215
+ /** Set the dimensions of the window. */
216
+ setWindowDimensions(
217
+ dimensions: {
218
+ x?: number | undefined;
219
+ y?: number | undefined;
220
+ width?: number | undefined;
221
+ height?: number | undefined;
222
+ },
223
+ ): Promise<object>;
224
+
225
+ // Messaging the User
226
+ /** Visually and audibly trigger a beep. */
227
+ beep(): void;
228
+
229
+ /**
230
+ * A flexible way to open a dialog akin to an alert dialog. If a callback
231
+ * is provided, then the confirmation will work asynchronously, which is
232
+ * recommended.
233
+ *
234
+ * If the dialog is closed (via `Esc` key or `X` in the top corner) without
235
+ * selecting a button the first button will be clicked unless a "Cancel" or "No"
236
+ * button is provided.
237
+ *
238
+ * Returns the chosen button index number if the buttons option was an array.
239
+ * @param response The index of the button that was clicked.
240
+ * @param checkboxChecked The checked state of the checkbox if `checkboxLabel` was set.
241
+ * Otherwise false.
242
+ */
243
+ confirm(options: ConfirmationOptions, callback: (response: number, checkboxChecked: boolean) => void): void;
244
+
245
+ /**
246
+ * A flexible way to open a dialog akin to an alert dialog. If a callback
247
+ * is provided, then the confirmation will work asynchronously, which is
248
+ * recommended.
249
+ *
250
+ * If the dialog is closed (via `Esc` key or `X` in the top corner) without
251
+ * selecting a button the first button will be clicked unless a "Cancel" or "No"
252
+ * button is provided.
253
+ *
254
+ * Returns the chosen button index number if the buttons option was an array.
255
+ */
256
+ confirm(
257
+ options: { message: string; detailedMessage?: string | undefined; buttons?: readonly string[] | undefined },
258
+ ): void;
259
+
260
+ /**
261
+ * A flexible way to open a dialog akin to an alert dialog. If a callback
262
+ * is provided, then the confirmation will work asynchronously, which is
263
+ * recommended.
264
+ *
265
+ * If the dialog is closed (via `Esc` key or `X` in the top corner) without
266
+ * selecting a button the first button will be clicked unless a "Cancel" or "No"
267
+ * button is provided.
268
+ *
269
+ * Returns the chosen button index number if the buttons option was an array.
270
+ */
271
+ confirm(options: {
272
+ message: string;
273
+ detailedMessage?: string | undefined;
274
+ buttons?: readonly string[] | {
275
+ [key: string]: () => void;
276
+ } | undefined;
277
+ }): number;
278
+
279
+ // Managing the Dev Tools
280
+ /** Open the dev tools for the current window. */
281
+ openDevTools(): Promise<null>;
282
+
283
+ /** Toggle the visibility of the dev tools for the current window. */
284
+ toggleDevTools(): Promise<null>;
285
+
286
+ /** Execute code in dev tools. */
287
+ executeJavaScriptInDevTools(code: string): void;
288
+
289
+ /** Undocumented: get Atom config directory path */
290
+ getConfigDirPath(): string;
291
+ }
292
+
293
+ export interface ExceptionThrownEvent {
294
+ originalError: Error;
295
+ message: string;
296
+ url: string;
297
+ line: number;
298
+ column: number;
299
+ }
300
+
301
+ export interface PreventableExceptionThrownEvent extends ExceptionThrownEvent {
302
+ preventDefault(): void;
303
+ }
304
+
305
+ export interface ConfirmationOptions {
306
+ /** The type of the confirmation prompt. */
307
+ type?: "none" | "info" | "error" | "question" | "warning" | undefined;
308
+
309
+ /** The text for the buttons. */
310
+ buttons?: readonly string[] | undefined;
311
+
312
+ /** The index for the button to be selected by default in the prompt. */
313
+ defaultId?: number | undefined;
314
+
315
+ /** The title for the prompt. */
316
+ title?: string | undefined;
317
+
318
+ /** The content of the message box. */
319
+ message?: string | undefined;
320
+
321
+ /** Additional information regarding the message. */
322
+ detail?: string | undefined;
323
+
324
+ /** If provided, the message box will include a checkbox with the given label. */
325
+ checkboxLabel?: string | undefined;
326
+
327
+ /** Initial checked state of the checkbox. false by default. */
328
+ checkboxChecked?: boolean | undefined;
329
+
330
+ /** An Electron NativeImage to use as the prompt's icon. */
331
+ icon?: object | undefined;
332
+
333
+ /**
334
+ * The index of the button to be used to cancel the dialog, via the `Esc` key.
335
+ * By default this is assigned to the first button with "cancel" or "no" as the
336
+ * label. If no such labeled buttons exist and this option is not set, 0 will be
337
+ * used as the return value or callback response.
338
+ *
339
+ * This option is ignored on Windows.
340
+ */
341
+ cancelId?: number | undefined;
342
+
343
+ /**
344
+ * On Windows, Electron will try to figure out which one of the buttons are
345
+ * common buttons (like `Cancel` or `Yes`), and show the others as command links
346
+ * in the dialog. This can make the dialog appear in the style of modern Windows
347
+ * apps. If you don't like this behavior, you can set noLink to true.
348
+ */
349
+ noLink?: boolean | undefined;
350
+
351
+ /**
352
+ * Normalize the keyboard access keys across platforms.
353
+ * Atom defaults this to true.
354
+ */
355
+ normalizeAccessKeys?: boolean | undefined;
356
+ }
357
+
358
+ export interface TimingMarker {
359
+ label: string;
360
+ time: number;
361
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Represents the current name of the app and other details that may vary if
3
+ * Atom is forked.
4
+ */
5
+ export interface Branding {
6
+ /** A lower-case fragment without spaces or special characters. */
7
+ readonly id: string;
8
+ /** The human-readable name of the application. */
9
+ readonly name: string;
10
+
11
+ /** The URL where the source code repository can be found. */
12
+ readonly urlCoreRepo: string
13
+ /** The URL for a discussion forum for the application. */
14
+ readonly urlForum: string
15
+ /** The URL of the organization on GitHub. */
16
+ readonly urlGH: string
17
+ /** The URL of the web site for the application */
18
+ readonly urlWeb: string
19
+ }
@@ -0,0 +1,10 @@
1
+ import { BufferedProcess, NodeProcessOptions } from "../index";
2
+
3
+ /**
4
+ * Like BufferedProcess, but accepts a Node script as the command to run.
5
+ * This is necessary on Windows since it doesn't support shebang #! lines.
6
+ */
7
+ export class BufferedNodeProcess extends BufferedProcess {
8
+ /** Runs the given Node script by spawning a new child process. */
9
+ constructor(options: NodeProcessOptions);
10
+ }