rspress-plugin-api-extractor 0.2.2 → 0.3.0

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 (43) hide show
  1. package/api-extracted-package.js +2 -1
  2. package/build-program.js +20 -12
  3. package/build-stages.js +123 -29
  4. package/config-utils.js +36 -7
  5. package/index.d.ts +329 -202
  6. package/layers/ConfigServiceLive.js +300 -136
  7. package/layers/ObservabilityLive.js +49 -85
  8. package/layers/TypeRegistryServiceLive.js +122 -21
  9. package/layers/build-metrics.js +61 -0
  10. package/llms-program.js +29 -7
  11. package/loader.js +16 -2
  12. package/markdown/shiki-utils.js +16 -2
  13. package/observability/EventBus.js +38 -0
  14. package/observability/events.js +17 -0
  15. package/observability/sinks/console-sink.js +63 -0
  16. package/observability/sinks/metrics-sink.js +68 -0
  17. package/observability/sinks/trace-sink.js +38 -0
  18. package/observability/spans.js +57 -0
  19. package/og-resolver.js +37 -5
  20. package/package.json +4 -4
  21. package/plugin.js +73 -19
  22. package/prettier-formatter.js +15 -4
  23. package/remark-api-codeblocks.js +22 -3
  24. package/remark-with-api.js +27 -14
  25. package/runtime/components/ApiExample/index.js +5 -5
  26. package/runtime/components/ApiMember/index.js +5 -7
  27. package/runtime/components/ApiSignature/index.js +4 -6
  28. package/runtime/components/EnumMembersTable/index.js +5 -0
  29. package/runtime/components/ExampleBlock/index.js +5 -3
  30. package/runtime/components/MemberSignature/index.js +4 -2
  31. package/runtime/components/ParametersTable/index.js +5 -0
  32. package/runtime/components/SignatureBlock/index.js +4 -2
  33. package/runtime/components/shared/variables.css +0 -15
  34. package/runtime/index.d.ts +65 -399
  35. package/runtime/index.js +1 -5
  36. package/runtime/utils/hast-renderer.js +1 -0
  37. package/schemas/config.js +105 -4
  38. package/schemas/index.js +2 -1
  39. package/schemas/observability.js +62 -0
  40. package/schemas/opengraph.js +30 -0
  41. package/schemas/performance.js +1 -1
  42. package/serve.js +13 -0
  43. package/twoslash-transformer.js +93 -8
package/index.d.ts CHANGED
@@ -3,20 +3,31 @@ import { Schema } from "effect";
3
3
  import { RspressPlugin } from "@rspress/core";
4
4
 
5
5
  //#region src/schemas/config.d.ts
6
+ /**
7
+ * Verbosity level for plugin build output.
8
+ *
9
+ * @public
10
+ */
6
11
  declare const LogLevel: Schema.Literal<["none", "info", "verbose", "debug", "warn", "error"]>;
12
+ /** @public */
7
13
  type LogLevel = Schema.Schema.Type<typeof LogLevel>;
14
+ /**
15
+ * Configuration for a single documentation category (e.g. Classes, Functions).
16
+ *
17
+ * @public
18
+ */
8
19
  declare const CategoryConfig: Schema.mutable<Schema.Struct<{
9
- displayName: typeof Schema.String;
10
- singularName: typeof Schema.String;
11
- folderName: typeof Schema.String;
12
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
13
- tsdocModifier: Schema.optional<typeof Schema.String>;
20
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
21
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
22
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
23
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
24
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
14
25
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
15
26
  default: () => true;
16
- }>;
27
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
17
28
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
18
29
  default: () => true;
19
- }>;
30
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
20
31
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
21
32
  default: () => number[];
22
33
  }>;
@@ -24,49 +35,65 @@ declare const CategoryConfig: Schema.mutable<Schema.Struct<{
24
35
  /**
25
36
  * Consumer-facing type uses Encoded (input shape with optional fields).
26
37
  * Schema.decode fills in defaults at runtime.
38
+ *
39
+ * @public
27
40
  */
28
41
  type CategoryConfig = Schema.Schema.Encoded<typeof CategoryConfig>;
42
+ /**
43
+ * Source repository link configuration for an API.
44
+ *
45
+ * @public
46
+ */
29
47
  declare const SourceConfig: Schema.mutable<Schema.Struct<{
30
- url: typeof Schema.String;
48
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
31
49
  ref: Schema.optional<typeof Schema.String>;
32
50
  }>>;
51
+ /** @public */
33
52
  type SourceConfig = Schema.Schema.Type<typeof SourceConfig>;
34
53
  /**
35
- * Built-in default categories
54
+ * Built-in default category definitions covering Classes, Interfaces, Functions,
55
+ * Types, Enums, Variables, and Namespaces.
56
+ *
57
+ * @public
36
58
  */
37
59
  declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
60
+ /**
61
+ * Configuration for a single version of an API within a multi-version setup.
62
+ *
63
+ * @public
64
+ */
38
65
  declare const VersionConfig: Schema.mutable<Schema.Struct<{
39
- model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>;
40
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
66
+ /** Path or loader for the `.api.json` model file for this version. */model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>; /** Path or loader for the `package.json` for this version. */
67
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Category overrides for this version. */
41
68
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
42
- displayName: typeof Schema.String;
43
- singularName: typeof Schema.String;
44
- folderName: typeof Schema.String;
45
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
46
- tsdocModifier: Schema.optional<typeof Schema.String>;
69
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
70
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
71
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
72
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
73
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
47
74
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
48
75
  default: () => true;
49
- }>;
76
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
50
77
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
51
78
  default: () => true;
52
- }>;
79
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
53
80
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
54
81
  default: () => number[];
55
82
  }>;
56
- }>>>>>;
83
+ }>>>>>; /** Source repository link configuration for this version. */
57
84
  source: Schema.optional<Schema.mutable<Schema.Struct<{
58
- url: typeof Schema.String;
85
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
59
86
  ref: Schema.optional<typeof Schema.String>;
60
- }>>>;
87
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
61
88
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
62
89
  name: typeof Schema.String;
63
90
  version: typeof Schema.String;
64
91
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
65
92
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
66
- }>>>>>;
93
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
67
94
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
68
95
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
69
- default: () => false;
96
+ default: () => true;
70
97
  }>;
71
98
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
72
99
  default: () => false;
@@ -77,7 +104,7 @@ declare const VersionConfig: Schema.mutable<Schema.Struct<{
77
104
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
78
105
  default: () => true;
79
106
  }>;
80
- }>>>;
107
+ }>>>; /** Open Graph image configuration for this version. */
81
108
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
82
109
  url: typeof Schema.String;
83
110
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -85,7 +112,7 @@ declare const VersionConfig: Schema.mutable<Schema.Struct<{
85
112
  width: Schema.optional<typeof Schema.Number>;
86
113
  height: Schema.optional<typeof Schema.Number>;
87
114
  alt: Schema.optional<typeof Schema.String>;
88
- }>>]>>;
115
+ }>>]>>; /** LLMs integration options for this version. */
89
116
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
90
117
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
91
118
  default: () => true;
@@ -108,50 +135,56 @@ declare const VersionConfig: Schema.mutable<Schema.Struct<{
108
135
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
109
136
  default: () => ["markdownLink", "chatgpt", "claude"];
110
137
  }>;
111
- }>>>;
112
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
138
+ }>>>; /** Path to a `tsconfig.json` for this version. */
139
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
113
140
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
114
141
  }>>;
142
+ /** @public */
115
143
  type VersionConfig = Schema.Schema.Type<typeof VersionConfig>;
144
+ /**
145
+ * Configuration for a single-package API documentation site (the `api:` option).
146
+ *
147
+ * @public
148
+ */
116
149
  declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
117
- packageName: typeof Schema.String;
118
- name: Schema.optional<typeof Schema.String>;
119
- baseRoute: Schema.optional<typeof Schema.String>;
120
- apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
121
- model: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
122
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
150
+ /** npm package name of the documented package. */packageName: typeof Schema.String; /** Optional display name shown in the sidebar and page titles. */
151
+ name: Schema.optional<typeof Schema.String>; /** Base URL route for API pages (defaults to `/api`). */
152
+ baseRoute: Schema.optional<typeof Schema.String>; /** Subfolder name under `baseRoute` for API pages, or `null` to omit. */
153
+ apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>; /** Path or loader for the `.api.json` model file. */
154
+ model: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Path or loader for the `package.json`. */
155
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Versioned models keyed by version label. */
123
156
  versions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>, Schema.mutable<Schema.Struct<{
124
- model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>;
125
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
157
+ /** Path or loader for the `.api.json` model file for this version. */model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>; /** Path or loader for the `package.json` for this version. */
158
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Category overrides for this version. */
126
159
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
127
- displayName: typeof Schema.String;
128
- singularName: typeof Schema.String;
129
- folderName: typeof Schema.String;
130
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
131
- tsdocModifier: Schema.optional<typeof Schema.String>;
160
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
161
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
162
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
163
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
164
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
132
165
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
133
166
  default: () => true;
134
- }>;
167
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
135
168
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
136
169
  default: () => true;
137
- }>;
170
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
138
171
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
139
172
  default: () => number[];
140
173
  }>;
141
- }>>>>>;
174
+ }>>>>>; /** Source repository link configuration for this version. */
142
175
  source: Schema.optional<Schema.mutable<Schema.Struct<{
143
- url: typeof Schema.String;
176
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
144
177
  ref: Schema.optional<typeof Schema.String>;
145
- }>>>;
178
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
146
179
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
147
180
  name: typeof Schema.String;
148
181
  version: typeof Schema.String;
149
182
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
150
183
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
151
- }>>>>>;
184
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
152
185
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
153
186
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
154
- default: () => false;
187
+ default: () => true;
155
188
  }>;
156
189
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
157
190
  default: () => false;
@@ -162,7 +195,7 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
162
195
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
163
196
  default: () => true;
164
197
  }>;
165
- }>>>;
198
+ }>>>; /** Open Graph image configuration for this version. */
166
199
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
167
200
  url: typeof Schema.String;
168
201
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -170,7 +203,7 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
170
203
  width: Schema.optional<typeof Schema.Number>;
171
204
  height: Schema.optional<typeof Schema.Number>;
172
205
  alt: Schema.optional<typeof Schema.String>;
173
- }>>]>>;
206
+ }>>]>>; /** LLMs integration options for this version. */
174
207
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
175
208
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
176
209
  default: () => true;
@@ -193,43 +226,43 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
193
226
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
194
227
  default: () => ["markdownLink", "chatgpt", "claude"];
195
228
  }>;
196
- }>>>;
197
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
229
+ }>>>; /** Path to a `tsconfig.json` for this version. */
230
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
198
231
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
199
- }>>]>>>>;
232
+ }>>]>>>>; /** Shiki syntax-highlighting theme. */
200
233
  theme: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
201
234
  light: typeof Schema.String;
202
235
  dark: typeof Schema.String;
203
- }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>;
236
+ }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>; /** Category definitions (defaults to {@link DEFAULT_CATEGORIES}). */
204
237
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
205
- displayName: typeof Schema.String;
206
- singularName: typeof Schema.String;
207
- folderName: typeof Schema.String;
208
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
209
- tsdocModifier: Schema.optional<typeof Schema.String>;
238
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
239
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
240
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
241
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
242
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
210
243
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
211
244
  default: () => true;
212
- }>;
245
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
213
246
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
214
247
  default: () => true;
215
- }>;
248
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
216
249
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
217
250
  default: () => number[];
218
251
  }>;
219
- }>>>>>;
252
+ }>>>>>; /** Source repository link configuration. */
220
253
  source: Schema.optional<Schema.mutable<Schema.Struct<{
221
- url: typeof Schema.String;
254
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
222
255
  ref: Schema.optional<typeof Schema.String>;
223
- }>>>;
256
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
224
257
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
225
258
  name: typeof Schema.String;
226
259
  version: typeof Schema.String;
227
260
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
228
261
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
229
- }>>>>>;
262
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
230
263
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
231
264
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
232
- default: () => false;
265
+ default: () => true;
233
266
  }>;
234
267
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
235
268
  default: () => false;
@@ -240,7 +273,7 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
240
273
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
241
274
  default: () => true;
242
275
  }>;
243
- }>>>;
276
+ }>>>; /** Open Graph image configuration. */
244
277
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
245
278
  url: typeof Schema.String;
246
279
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -248,7 +281,7 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
248
281
  width: Schema.optional<typeof Schema.Number>;
249
282
  height: Schema.optional<typeof Schema.Number>;
250
283
  alt: Schema.optional<typeof Schema.String>;
251
- }>>]>>;
284
+ }>>]>>; /** LLMs integration options. */
252
285
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
253
286
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
254
287
  default: () => true;
@@ -271,51 +304,57 @@ declare const SingleApiConfig: Schema.mutable<Schema.Struct<{
271
304
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
272
305
  default: () => ["markdownLink", "chatgpt", "claude"];
273
306
  }>;
274
- }>>>;
275
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
307
+ }>>>; /** Path to a `tsconfig.json` for Twoslash. */
308
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
276
309
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
277
310
  }>>;
311
+ /** @public */
278
312
  type SingleApiConfig = Schema.Schema.Type<typeof SingleApiConfig>;
313
+ /**
314
+ * Configuration for one package in a multi-API portal (each element of the `apis:` array).
315
+ *
316
+ * @public
317
+ */
279
318
  declare const MultiApiConfig: Schema.mutable<Schema.Struct<{
280
- packageName: typeof Schema.String;
281
- name: Schema.optional<typeof Schema.String>;
282
- baseRoute: Schema.optional<typeof Schema.String>;
283
- apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
284
- model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>;
285
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
319
+ /** npm package name of the documented package. */packageName: typeof Schema.String; /** Optional display name shown in the sidebar and page titles. */
320
+ name: Schema.optional<typeof Schema.String>; /** Base URL route for this package's API pages. */
321
+ baseRoute: Schema.optional<typeof Schema.String>; /** Subfolder name under `baseRoute` for API pages, or `null` to omit. */
322
+ apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>; /** Path or loader for the `.api.json` model file (required). */
323
+ model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>; /** Path or loader for the `package.json`. */
324
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Shiki syntax-highlighting theme. */
286
325
  theme: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
287
326
  light: typeof Schema.String;
288
327
  dark: typeof Schema.String;
289
- }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>;
328
+ }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>; /** Category definitions (defaults to {@link DEFAULT_CATEGORIES}). */
290
329
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
291
- displayName: typeof Schema.String;
292
- singularName: typeof Schema.String;
293
- folderName: typeof Schema.String;
294
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
295
- tsdocModifier: Schema.optional<typeof Schema.String>;
330
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
331
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
332
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
333
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
334
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
296
335
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
297
336
  default: () => true;
298
- }>;
337
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
299
338
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
300
339
  default: () => true;
301
- }>;
340
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
302
341
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
303
342
  default: () => number[];
304
343
  }>;
305
- }>>>>>;
344
+ }>>>>>; /** Source repository link configuration. */
306
345
  source: Schema.optional<Schema.mutable<Schema.Struct<{
307
- url: typeof Schema.String;
346
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
308
347
  ref: Schema.optional<typeof Schema.String>;
309
- }>>>;
348
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
310
349
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
311
350
  name: typeof Schema.String;
312
351
  version: typeof Schema.String;
313
352
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
314
353
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
315
- }>>>>>;
354
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
316
355
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
317
356
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
318
- default: () => false;
357
+ default: () => true;
319
358
  }>;
320
359
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
321
360
  default: () => false;
@@ -326,7 +365,7 @@ declare const MultiApiConfig: Schema.mutable<Schema.Struct<{
326
365
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
327
366
  default: () => true;
328
367
  }>;
329
- }>>>;
368
+ }>>>; /** Open Graph image configuration. */
330
369
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
331
370
  url: typeof Schema.String;
332
371
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -334,7 +373,7 @@ declare const MultiApiConfig: Schema.mutable<Schema.Struct<{
334
373
  width: Schema.optional<typeof Schema.Number>;
335
374
  height: Schema.optional<typeof Schema.Number>;
336
375
  alt: Schema.optional<typeof Schema.String>;
337
- }>>]>>;
376
+ }>>]>>; /** LLMs integration options. */
338
377
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
339
378
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
340
379
  default: () => true;
@@ -357,51 +396,57 @@ declare const MultiApiConfig: Schema.mutable<Schema.Struct<{
357
396
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
358
397
  default: () => ["markdownLink", "chatgpt", "claude"];
359
398
  }>;
360
- }>>>;
361
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
399
+ }>>>; /** Path to a `tsconfig.json` for Twoslash. */
400
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
362
401
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
363
402
  }>>;
403
+ /** @public */
364
404
  type MultiApiConfig = Schema.Schema.Type<typeof MultiApiConfig>;
405
+ /**
406
+ * Top-level options passed to {@link ApiExtractorPlugin}.
407
+ *
408
+ * @public
409
+ */
365
410
  declare const PluginOptions: Schema.mutable<Schema.Struct<{
366
- api: Schema.optional<Schema.mutable<Schema.Struct<{
367
- packageName: typeof Schema.String;
368
- name: Schema.optional<typeof Schema.String>;
369
- baseRoute: Schema.optional<typeof Schema.String>;
370
- apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
371
- model: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
372
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
411
+ /** Single-API configuration (mutually exclusive with `apis`). */api: Schema.optional<Schema.mutable<Schema.Struct<{
412
+ /** npm package name of the documented package. */packageName: typeof Schema.String; /** Optional display name shown in the sidebar and page titles. */
413
+ name: Schema.optional<typeof Schema.String>; /** Base URL route for API pages (defaults to `/api`). */
414
+ baseRoute: Schema.optional<typeof Schema.String>; /** Subfolder name under `baseRoute` for API pages, or `null` to omit. */
415
+ apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>; /** Path or loader for the `.api.json` model file. */
416
+ model: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Path or loader for the `package.json`. */
417
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Versioned models keyed by version label. */
373
418
  versions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>, Schema.mutable<Schema.Struct<{
374
- model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>;
375
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
419
+ /** Path or loader for the `.api.json` model file for this version. */model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>; /** Path or loader for the `package.json` for this version. */
420
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Category overrides for this version. */
376
421
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
377
- displayName: typeof Schema.String;
378
- singularName: typeof Schema.String;
379
- folderName: typeof Schema.String;
380
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
381
- tsdocModifier: Schema.optional<typeof Schema.String>;
422
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
423
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
424
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
425
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
426
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
382
427
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
383
428
  default: () => true;
384
- }>;
429
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
385
430
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
386
431
  default: () => true;
387
- }>;
432
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
388
433
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
389
434
  default: () => number[];
390
435
  }>;
391
- }>>>>>;
436
+ }>>>>>; /** Source repository link configuration for this version. */
392
437
  source: Schema.optional<Schema.mutable<Schema.Struct<{
393
- url: typeof Schema.String;
438
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
394
439
  ref: Schema.optional<typeof Schema.String>;
395
- }>>>;
440
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
396
441
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
397
442
  name: typeof Schema.String;
398
443
  version: typeof Schema.String;
399
444
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
400
445
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
401
- }>>>>>;
446
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
402
447
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
403
448
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
404
- default: () => false;
449
+ default: () => true;
405
450
  }>;
406
451
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
407
452
  default: () => false;
@@ -412,7 +457,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
412
457
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
413
458
  default: () => true;
414
459
  }>;
415
- }>>>;
460
+ }>>>; /** Open Graph image configuration for this version. */
416
461
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
417
462
  url: typeof Schema.String;
418
463
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -420,7 +465,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
420
465
  width: Schema.optional<typeof Schema.Number>;
421
466
  height: Schema.optional<typeof Schema.Number>;
422
467
  alt: Schema.optional<typeof Schema.String>;
423
- }>>]>>;
468
+ }>>]>>; /** LLMs integration options for this version. */
424
469
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
425
470
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
426
471
  default: () => true;
@@ -443,43 +488,43 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
443
488
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
444
489
  default: () => ["markdownLink", "chatgpt", "claude"];
445
490
  }>;
446
- }>>>;
447
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
491
+ }>>>; /** Path to a `tsconfig.json` for this version. */
492
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
448
493
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
449
- }>>]>>>>;
494
+ }>>]>>>>; /** Shiki syntax-highlighting theme. */
450
495
  theme: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
451
496
  light: typeof Schema.String;
452
497
  dark: typeof Schema.String;
453
- }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>;
498
+ }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>; /** Category definitions (defaults to {@link DEFAULT_CATEGORIES}). */
454
499
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
455
- displayName: typeof Schema.String;
456
- singularName: typeof Schema.String;
457
- folderName: typeof Schema.String;
458
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
459
- tsdocModifier: Schema.optional<typeof Schema.String>;
500
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
501
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
502
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
503
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
504
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
460
505
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
461
506
  default: () => true;
462
- }>;
507
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
463
508
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
464
509
  default: () => true;
465
- }>;
510
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
466
511
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
467
512
  default: () => number[];
468
513
  }>;
469
- }>>>>>;
514
+ }>>>>>; /** Source repository link configuration. */
470
515
  source: Schema.optional<Schema.mutable<Schema.Struct<{
471
- url: typeof Schema.String;
516
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
472
517
  ref: Schema.optional<typeof Schema.String>;
473
- }>>>;
518
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
474
519
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
475
520
  name: typeof Schema.String;
476
521
  version: typeof Schema.String;
477
522
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
478
523
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
479
- }>>>>>;
524
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
480
525
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
481
526
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
482
- default: () => false;
527
+ default: () => true;
483
528
  }>;
484
529
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
485
530
  default: () => false;
@@ -490,7 +535,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
490
535
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
491
536
  default: () => true;
492
537
  }>;
493
- }>>>;
538
+ }>>>; /** Open Graph image configuration. */
494
539
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
495
540
  url: typeof Schema.String;
496
541
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -498,7 +543,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
498
543
  width: Schema.optional<typeof Schema.Number>;
499
544
  height: Schema.optional<typeof Schema.Number>;
500
545
  alt: Schema.optional<typeof Schema.String>;
501
- }>>]>>;
546
+ }>>]>>; /** LLMs integration options. */
502
547
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
503
548
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
504
549
  default: () => true;
@@ -521,50 +566,50 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
521
566
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
522
567
  default: () => ["markdownLink", "chatgpt", "claude"];
523
568
  }>;
524
- }>>>;
525
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
569
+ }>>>; /** Path to a `tsconfig.json` for Twoslash. */
570
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
526
571
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
527
- }>>>;
572
+ }>>>; /** Multi-API portal configuration (mutually exclusive with `api`). */
528
573
  apis: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
529
- packageName: typeof Schema.String;
530
- name: Schema.optional<typeof Schema.String>;
531
- baseRoute: Schema.optional<typeof Schema.String>;
532
- apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
533
- model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>;
534
- packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
574
+ /** npm package name of the documented package. */packageName: typeof Schema.String; /** Optional display name shown in the sidebar and page titles. */
575
+ name: Schema.optional<typeof Schema.String>; /** Base URL route for this package's API pages. */
576
+ baseRoute: Schema.optional<typeof Schema.String>; /** Subfolder name under `baseRoute` for API pages, or `null` to omit. */
577
+ apiFolder: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>; /** Path or loader for the `.api.json` model file (required). */
578
+ model: Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>; /** Path or loader for the `package.json`. */
579
+ packageJson: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** Shiki syntax-highlighting theme. */
535
580
  theme: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
536
581
  light: typeof Schema.String;
537
582
  dark: typeof Schema.String;
538
- }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>;
583
+ }>>, Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>]>>; /** Category definitions (defaults to {@link DEFAULT_CATEGORIES}). */
539
584
  categories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
540
- displayName: typeof Schema.String;
541
- singularName: typeof Schema.String;
542
- folderName: typeof Schema.String;
543
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
544
- tsdocModifier: Schema.optional<typeof Schema.String>;
585
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
586
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
587
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
588
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
589
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
545
590
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
546
591
  default: () => true;
547
- }>;
592
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
548
593
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
549
594
  default: () => true;
550
- }>;
595
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
551
596
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
552
597
  default: () => number[];
553
598
  }>;
554
- }>>>>>;
599
+ }>>>>>; /** Source repository link configuration. */
555
600
  source: Schema.optional<Schema.mutable<Schema.Struct<{
556
- url: typeof Schema.String;
601
+ /** Base URL of the source repository (e.g. `"https://github.com/org/repo/blob/main/src"`). */url: typeof Schema.String; /** Optional git ref (branch, tag, or commit SHA) appended to source links. */
557
602
  ref: Schema.optional<typeof Schema.String>;
558
- }>>>;
603
+ }>>>; /** External npm packages whose types should be loaded for Twoslash. */
559
604
  externalPackages: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
560
605
  name: typeof Schema.String;
561
606
  version: typeof Schema.String;
562
607
  tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
563
608
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
564
- }>>>>>;
609
+ }>>>>>; /** Auto-detect external packages from `package.json` dependency fields. */
565
610
  autoDetectDependencies: Schema.optional<Schema.mutable<Schema.Struct<{
566
611
  dependencies: Schema.optionalWith<typeof Schema.Boolean, {
567
- default: () => false;
612
+ default: () => true;
568
613
  }>;
569
614
  devDependencies: Schema.optionalWith<typeof Schema.Boolean, {
570
615
  default: () => false;
@@ -575,7 +620,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
575
620
  autoDependencies: Schema.optionalWith<typeof Schema.Boolean, {
576
621
  default: () => true;
577
622
  }>;
578
- }>>>;
623
+ }>>>; /** Open Graph image configuration. */
579
624
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
580
625
  url: typeof Schema.String;
581
626
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -583,7 +628,7 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
583
628
  width: Schema.optional<typeof Schema.Number>;
584
629
  height: Schema.optional<typeof Schema.Number>;
585
630
  alt: Schema.optional<typeof Schema.String>;
586
- }>>]>>;
631
+ }>>]>>; /** LLMs integration options. */
587
632
  llmsPlugin: Schema.optional<Schema.mutable<Schema.Struct<{
588
633
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
589
634
  default: () => true;
@@ -606,11 +651,11 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
606
651
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
607
652
  default: () => ["markdownLink", "chatgpt", "claude"];
608
653
  }>;
609
- }>>>;
610
- tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>;
654
+ }>>>; /** Path to a `tsconfig.json` for Twoslash. */
655
+ tsconfig: Schema.optional<Schema.declare<string | ((...args: Array<unknown>) => unknown) | URL, string | ((...args: Array<unknown>) => unknown) | URL, readonly [], never>>; /** TypeScript compiler options for Twoslash. */
611
656
  compilerOptions: Schema.optional<typeof Schema.Unknown>;
612
- }>>>>>;
613
- siteUrl: Schema.optional<typeof Schema.String>;
657
+ }>>>>>; /** Canonical site URL used for Open Graph absolute URLs. */
658
+ siteUrl: Schema.optional<typeof Schema.String>; /** Global Open Graph image configuration (overridden per-API). */
614
659
  ogImage: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
615
660
  url: typeof Schema.String;
616
661
  secureUrl: Schema.optional<typeof Schema.String>;
@@ -618,26 +663,26 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
618
663
  width: Schema.optional<typeof Schema.Number>;
619
664
  height: Schema.optional<typeof Schema.Number>;
620
665
  alt: Schema.optional<typeof Schema.String>;
621
- }>>]>>;
666
+ }>>]>>; /** Override the default category definitions for all APIs. */
622
667
  defaultCategories: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
623
- displayName: typeof Schema.String;
624
- singularName: typeof Schema.String;
625
- folderName: typeof Schema.String;
626
- itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>;
627
- tsdocModifier: Schema.optional<typeof Schema.String>;
668
+ /** Human-readable plural display name shown in the sidebar. */displayName: typeof Schema.String; /** Human-readable singular name used in page titles. */
669
+ singularName: typeof Schema.String; /** Folder name under the API base route (URL segment). */
670
+ folderName: typeof Schema.String; /** API item kinds included in this category. */
671
+ itemKinds: Schema.optional<Schema.mutable<Schema.Array$<Schema.declare<ApiItemKind, ApiItemKind, readonly [], never>>>>; /** TSDoc modifier tag that marks items for this category. */
672
+ tsdocModifier: Schema.optional<typeof Schema.String>; /** Whether the sidebar section is collapsible. Defaults to `true`. */
628
673
  collapsible: Schema.optionalWith<typeof Schema.Boolean, {
629
674
  default: () => true;
630
- }>;
675
+ }>; /** Whether the sidebar section starts collapsed. Defaults to `true`. */
631
676
  collapsed: Schema.optionalWith<typeof Schema.Boolean, {
632
677
  default: () => true;
633
- }>;
678
+ }>; /** Heading levels shown in the overview. Defaults to `[2]`. */
634
679
  overviewHeaders: Schema.optionalWith<Schema.mutable<Schema.Array$<typeof Schema.Number>>, {
635
680
  default: () => number[];
636
681
  }>;
637
- }>>>>>;
682
+ }>>>>>; /** Error display options for code examples. */
638
683
  errors: Schema.optional<Schema.mutable<Schema.Struct<{
639
684
  example: Schema.optional<Schema.Literal<["suppress", "show"]>>;
640
- }>>>;
685
+ }>>>; /** LLMs integration options, or `false` to disable. */
641
686
  llmsPlugin: Schema.optional<Schema.Union<[typeof Schema.Boolean, Schema.mutable<Schema.Struct<{
642
687
  enabled: Schema.optionalWith<typeof Schema.Boolean, {
643
688
  default: () => true;
@@ -660,8 +705,8 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
660
705
  viewOptions: Schema.optionalWith<Schema.mutable<Schema.Array$<Schema.Literal<["markdownLink", "chatgpt", "claude"]>>>, {
661
706
  default: () => ["markdownLink", "chatgpt", "claude"];
662
707
  }>;
663
- }>>]>>;
664
- logLevel: Schema.optional<Schema.Literal<["none", "info", "verbose", "debug", "warn", "error"]>>;
708
+ }>>]>>; /** Verbosity level for plugin build output. @deprecated Use `observability.logLevel`. */
709
+ logLevel: Schema.optional<Schema.Literal<["none", "info", "verbose", "debug", "warn", "error"]>>; /** Performance tuning options. @deprecated Use `observability.thresholds`. */
665
710
  performance: Schema.optional<Schema.mutable<Schema.Struct<{
666
711
  thresholds: Schema.optional<Schema.mutable<Schema.Struct<{
667
712
  slowCodeBlock: Schema.optionalWith<typeof Schema.Number, {
@@ -689,51 +734,98 @@ declare const PluginOptions: Schema.mutable<Schema.Struct<{
689
734
  trackDetailedMetrics: Schema.optionalWith<typeof Schema.Boolean, {
690
735
  default: () => false;
691
736
  }>;
737
+ }>>>; /** Unified observability configuration (logLevel, trace artifact, thresholds). */
738
+ observability: Schema.optional<Schema.mutable<Schema.Struct<{
739
+ logLevel: Schema.optional<Schema.Literal<["none", "error", "warn", "info", "debug", "trace", "verbose"]>>;
740
+ trace: Schema.optional<Schema.Union<[typeof Schema.Boolean, typeof Schema.String]>>;
741
+ thresholds: Schema.optional<Schema.mutable<Schema.Struct<{
742
+ slowCodeBlock: Schema.optionalWith<typeof Schema.Number, {
743
+ default: () => number;
744
+ }>;
745
+ slowPageGeneration: Schema.optionalWith<typeof Schema.Number, {
746
+ default: () => number;
747
+ }>;
748
+ slowApiLoad: Schema.optionalWith<typeof Schema.Number, {
749
+ default: () => number;
750
+ }>;
751
+ slowFileOperation: Schema.optionalWith<typeof Schema.Number, {
752
+ default: () => number;
753
+ }>;
754
+ slowHttpRequest: Schema.optionalWith<typeof Schema.Number, {
755
+ default: () => number;
756
+ }>;
757
+ slowDbOperation: Schema.optionalWith<typeof Schema.Number, {
758
+ default: () => number;
759
+ }>;
760
+ }>>>;
692
761
  }>>>;
693
762
  }>>;
763
+ /** @public */
694
764
  type PluginOptions = Schema.Schema.Type<typeof PluginOptions>;
695
765
  //#endregion
696
766
  //#region src/schemas/opengraph.d.ts
767
+ /**
768
+ * Structured Open Graph image metadata (alternative to a plain URL string).
769
+ *
770
+ * @public
771
+ */
697
772
  declare const OpenGraphImageMetadata: Schema.mutable<Schema.Struct<{
698
- url: typeof Schema.String;
699
- secureUrl: Schema.optional<typeof Schema.String>;
700
- type: Schema.optional<typeof Schema.String>;
701
- width: Schema.optional<typeof Schema.Number>;
702
- height: Schema.optional<typeof Schema.Number>;
773
+ /** Absolute URL of the image. */url: typeof Schema.String; /** HTTPS URL of the image (for secure contexts). */
774
+ secureUrl: Schema.optional<typeof Schema.String>; /** MIME type of the image (e.g. `"image/png"`). */
775
+ type: Schema.optional<typeof Schema.String>; /** Image width in pixels. */
776
+ width: Schema.optional<typeof Schema.Number>; /** Image height in pixels. */
777
+ height: Schema.optional<typeof Schema.Number>; /** Alt text for the image. */
703
778
  alt: Schema.optional<typeof Schema.String>;
704
779
  }>>;
780
+ /** @public */
705
781
  type OpenGraphImageMetadata = Schema.Schema.Type<typeof OpenGraphImageMetadata>;
782
+ /**
783
+ * Open Graph image: either a plain URL string or structured `OpenGraphImageMetadata`.
784
+ *
785
+ * @public
786
+ */
706
787
  declare const OpenGraphImageConfig: Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Struct<{
707
- url: typeof Schema.String;
708
- secureUrl: Schema.optional<typeof Schema.String>;
709
- type: Schema.optional<typeof Schema.String>;
710
- width: Schema.optional<typeof Schema.Number>;
711
- height: Schema.optional<typeof Schema.Number>;
788
+ /** Absolute URL of the image. */url: typeof Schema.String; /** HTTPS URL of the image (for secure contexts). */
789
+ secureUrl: Schema.optional<typeof Schema.String>; /** MIME type of the image (e.g. `"image/png"`). */
790
+ type: Schema.optional<typeof Schema.String>; /** Image width in pixels. */
791
+ width: Schema.optional<typeof Schema.Number>; /** Image height in pixels. */
792
+ height: Schema.optional<typeof Schema.Number>; /** Alt text for the image. */
712
793
  alt: Schema.optional<typeof Schema.String>;
713
794
  }>>]>;
795
+ /** @public */
714
796
  type OpenGraphImageConfig = Schema.Schema.Type<typeof OpenGraphImageConfig>;
797
+ /**
798
+ * Resolved Open Graph metadata emitted into each generated page's frontmatter.
799
+ *
800
+ * @public
801
+ */
715
802
  declare const OpenGraphMetadata: Schema.mutable<Schema.Struct<{
716
- siteUrl: typeof Schema.String;
717
- pageRoute: typeof Schema.String;
718
- description: typeof Schema.String;
719
- publishedTime: typeof Schema.String;
720
- modifiedTime: typeof Schema.String;
721
- section: typeof Schema.String;
722
- tags: Schema.mutable<Schema.Array$<typeof Schema.String>>;
803
+ /** Canonical site base URL. */siteUrl: typeof Schema.String; /** Page route path (e.g. `/api/classes/myclass`). */
804
+ pageRoute: typeof Schema.String; /** Page description for the `og:description` tag. */
805
+ description: typeof Schema.String; /** ISO 8601 date string for `article:published_time`. */
806
+ publishedTime: typeof Schema.String; /** ISO 8601 date string for `article:modified_time`. */
807
+ modifiedTime: typeof Schema.String; /** Article section label (e.g. `"API"`). */
808
+ section: typeof Schema.String; /** Article tag keywords. */
809
+ tags: Schema.mutable<Schema.Array$<typeof Schema.String>>; /** Optional structured image metadata. */
723
810
  ogImage: Schema.optional<Schema.mutable<Schema.Struct<{
724
- url: typeof Schema.String;
725
- secureUrl: Schema.optional<typeof Schema.String>;
726
- type: Schema.optional<typeof Schema.String>;
727
- width: Schema.optional<typeof Schema.Number>;
728
- height: Schema.optional<typeof Schema.Number>;
811
+ /** Absolute URL of the image. */url: typeof Schema.String; /** HTTPS URL of the image (for secure contexts). */
812
+ secureUrl: Schema.optional<typeof Schema.String>; /** MIME type of the image (e.g. `"image/png"`). */
813
+ type: Schema.optional<typeof Schema.String>; /** Image width in pixels. */
814
+ width: Schema.optional<typeof Schema.Number>; /** Image height in pixels. */
815
+ height: Schema.optional<typeof Schema.Number>; /** Alt text for the image. */
729
816
  alt: Schema.optional<typeof Schema.String>;
730
- }>>>;
817
+ }>>>; /** Open Graph object type (e.g. `"article"`). */
731
818
  ogType: typeof Schema.String;
732
819
  }>>;
820
+ /** @public */
733
821
  type OpenGraphMetadata = Schema.Schema.Type<typeof OpenGraphMetadata>;
734
822
  //#endregion
735
823
  //#region src/config-helpers.d.ts
736
- /** Metadata discovered from a single rslib-builder localPaths package folder. */
824
+ /**
825
+ * Metadata discovered from a single rslib-builder localPaths package folder.
826
+ *
827
+ * @public
828
+ */
737
829
  interface DirInfo {
738
830
  /** Absolute path to the package folder. */
739
831
  dir: string;
@@ -760,9 +852,15 @@ interface DirInfo {
760
852
  * package it yields the scope too (e.g. `@scope/bar`), which is rarely what you
761
853
  * want inside a URL path. Prefer `{dirname}` (the folder name, which is the
762
854
  * unscoped name in the rslib-builder layout) or the callback form.
855
+ *
856
+ * @public
763
857
  */
764
858
  type BaseRoute = string | ((info: DirInfo) => string);
765
- /** Overrides for `api.fromDir`. Any MultiApiConfig field wins over discovery. */
859
+ /**
860
+ * Overrides for `api.fromDir`. Any `MultiApiConfig` field wins over discovery.
861
+ *
862
+ * @public
863
+ */
766
864
  type FromDirOptions = Omit<Partial<MultiApiConfig>, "baseRoute"> & {
767
865
  baseRoute?: BaseRoute; /** Base for resolving a relative `dir`. Defaults to process.cwd(). */
768
866
  cwd?: string;
@@ -789,7 +887,9 @@ declare function fromParentDir(parentDir: string, options?: FromDirOptions): Mul
789
887
  //#endregion
790
888
  //#region src/internal-types.d.ts
791
889
  /**
792
- * Result from a model loader function
890
+ * Result returned by a model loader function.
891
+ *
892
+ * @public
793
893
  */
794
894
  interface LoadedModel {
795
895
  /** The API model */
@@ -808,6 +908,8 @@ declare function ApiExtractorPluginImpl(rawOptions: PluginOptions): RspressPlugi
808
908
  * files. Config helpers are available under `ApiExtractorPlugin.api` (single
809
909
  * package → one config for the `api:` option) and `ApiExtractorPlugin.apis`
810
910
  * (parent directory → array for the `apis:` option).
911
+ *
912
+ * @public
811
913
  */
812
914
  declare const ApiExtractorPlugin: typeof ApiExtractorPluginImpl & {
813
915
  api: {
@@ -819,9 +921,17 @@ declare const ApiExtractorPlugin: typeof ApiExtractorPluginImpl & {
819
921
  };
820
922
  //#endregion
821
923
  //#region src/serve.d.ts
822
- /** Which RSPress server `serve` runs. */
924
+ /**
925
+ * Which RSPress server {@link serve} runs.
926
+ *
927
+ * @public
928
+ */
823
929
  type ServeMode = "dev" | "preview";
824
- /** Options for {@link serve}. All fields are optional with sensible defaults. */
930
+ /**
931
+ * Options for {@link serve}. All fields are optional with sensible defaults.
932
+ *
933
+ * @public
934
+ */
825
935
  interface ServeOptions {
826
936
  /** Which RSPress server to run. Defaults to `"dev"`. */
827
937
  mode?: ServeMode;
@@ -848,7 +958,11 @@ interface ServeOptions {
848
958
  */
849
959
  readyWhen?: (output: string) => boolean;
850
960
  }
851
- /** Fully resolved {@link ServeOptions} with defaults applied. */
961
+ /**
962
+ * Fully resolved {@link ServeOptions} with defaults applied.
963
+ *
964
+ * @public
965
+ */
852
966
  interface ResolvedServeConfig {
853
967
  mode: ServeMode;
854
968
  port: number;
@@ -870,12 +984,21 @@ interface ResolvedServeConfig {
870
984
  * "ready ... built in" line, kept as a fallback in case the address-line format
871
985
  * changes. Pure and exported so it can be unit-tested and reused as a
872
986
  * {@link ServeOptions.readyWhen} building block.
987
+ *
988
+ * @param mode - the server mode (`"dev"` or `"preview"`)
989
+ * @param output - a chunk of combined stdout/stderr from the server process
990
+ * @returns `true` when the server appears to be listening
991
+ * @public
873
992
  */
874
993
  declare function isServerReady(mode: ServeMode, output: string): boolean;
875
994
  /**
876
995
  * Resolve {@link ServeOptions} into a concrete {@link ResolvedServeConfig},
877
996
  * applying all defaults. Pure (modulo reading `process.env`) and exported so
878
997
  * the resolution logic can be unit-tested without spawning a server.
998
+ *
999
+ * @param options - optional serve options; all fields have sensible defaults
1000
+ * @returns a fully resolved config with all defaults applied
1001
+ * @public
879
1002
  */
880
1003
  declare function resolveServeConfig(options?: ServeOptions): ResolvedServeConfig;
881
1004
  /**
@@ -894,6 +1017,10 @@ declare function resolveServeConfig(options?: ServeOptions): ResolvedServeConfig
894
1017
  * returned promise resolves once the server is ready and the browser has been
895
1018
  * opened; it does not resolve when the server stops. Port-freeing and browser
896
1019
  * opening are best-effort and never reject.
1020
+ *
1021
+ * @param options - optional serve options; all fields have sensible defaults
1022
+ * @returns a promise that resolves once the server is ready and the browser has been opened
1023
+ * @public
897
1024
  */
898
1025
  declare function serve(options?: ServeOptions): Promise<void>;
899
1026
  //#endregion