@stainless-api/docs-ui 0.1.0-beta.8 → 0.1.0-beta.80

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 (155) hide show
  1. package/dist/chunk-BYypO7fO.js +18 -0
  2. package/dist/components/MaskedInput.d.ts +14 -0
  3. package/dist/components/MaskedInput.js +76 -0
  4. package/dist/components/breadcrumbs.d.ts +25 -0
  5. package/dist/components/breadcrumbs.js +64 -0
  6. package/dist/components/icons.d.ts +65 -0
  7. package/dist/components/icons.js +941 -0
  8. package/dist/components/index.d.ts +16 -0
  9. package/dist/components/index.js +75 -0
  10. package/dist/components/method.d.ts +59 -0
  11. package/dist/components/method.js +97 -0
  12. package/dist/components/overview.d.ts +39 -0
  13. package/dist/components/overview.js +139 -0
  14. package/dist/components/primitives.d.ts +107 -0
  15. package/dist/components/primitives.js +253 -0
  16. package/dist/components/properties.d.ts +54 -0
  17. package/dist/components/properties.js +140 -0
  18. package/dist/components/sdk-sidebar.d.ts +15 -0
  19. package/dist/components/sdk-sidebar.js +52 -0
  20. package/dist/components/sdk.d.ts +128 -0
  21. package/dist/components/sdk.js +490 -0
  22. package/dist/components/snippets.d.ts +71 -0
  23. package/dist/components/snippets.js +184 -0
  24. package/dist/components/stl-sidebar.d.ts +58 -0
  25. package/dist/components/stl-sidebar.js +114 -0
  26. package/dist/contexts/component-generics.d.ts +30 -0
  27. package/dist/contexts/component-generics.js +33 -0
  28. package/dist/contexts/component-types.d.ts +8 -0
  29. package/dist/contexts/component-types.js +0 -0
  30. package/dist/contexts/component.d.ts +21 -0
  31. package/dist/contexts/component.js +24 -0
  32. package/dist/contexts/docs.d.ts +62 -0
  33. package/dist/contexts/docs.js +91 -0
  34. package/dist/contexts/index.d.ts +13 -0
  35. package/dist/contexts/index.js +45 -0
  36. package/dist/contexts/markdown.d.ts +22 -0
  37. package/dist/contexts/markdown.js +49 -0
  38. package/dist/contexts/navigation.d.ts +29 -0
  39. package/dist/contexts/navigation.js +24 -0
  40. package/dist/contexts/use-components.d.ts +6 -0
  41. package/dist/contexts/use-components.js +8 -0
  42. package/dist/index-pvh-w1xa.d.ts +1776 -0
  43. package/dist/index.d.ts +7 -0
  44. package/dist/index.js +9 -7542
  45. package/dist/languages/cli.d.ts +38 -0
  46. package/dist/languages/cli.js +167 -0
  47. package/dist/languages/csharp.d.ts +42 -0
  48. package/dist/languages/csharp.js +284 -0
  49. package/dist/languages/go.d.ts +40 -0
  50. package/dist/languages/go.js +304 -0
  51. package/dist/languages/http.d.ts +46 -0
  52. package/dist/languages/http.js +391 -0
  53. package/dist/languages/index.d.ts +51 -0
  54. package/dist/languages/index.js +33 -0
  55. package/dist/languages/java.d.ts +43 -0
  56. package/dist/languages/java.js +404 -0
  57. package/dist/languages/php.d.ts +40 -0
  58. package/dist/languages/php.js +313 -0
  59. package/dist/languages/python.d.ts +40 -0
  60. package/dist/languages/python.js +270 -0
  61. package/dist/languages/ruby.d.ts +40 -0
  62. package/dist/languages/ruby.js +388 -0
  63. package/dist/languages/terraform.d.ts +48 -0
  64. package/dist/languages/terraform.js +244 -0
  65. package/dist/languages/typescript.d.ts +40 -0
  66. package/dist/languages/typescript.js +450 -0
  67. package/dist/markdown/index.d.ts +11 -0
  68. package/dist/markdown/index.js +80 -0
  69. package/dist/markdown/md.d.ts +15 -0
  70. package/dist/markdown/md.js +41 -0
  71. package/dist/markdown/printer.d.ts +13 -0
  72. package/dist/markdown/printer.js +76 -0
  73. package/dist/markdown/utils.d.ts +21 -0
  74. package/dist/markdown/utils.js +31 -0
  75. package/dist/routing.d.ts +61 -0
  76. package/dist/routing.js +176 -150
  77. package/dist/spec.d.ts +65 -0
  78. package/dist/spec.js +167 -0
  79. package/dist/style.d.ts +177 -0
  80. package/dist/style.js +178 -0
  81. package/dist/styles/main.css +788 -752
  82. package/dist/styles/main.js +0 -0
  83. package/dist/styles/primitives.css +326 -458
  84. package/dist/styles/primitives.js +0 -0
  85. package/dist/styles/resets.css +32 -41
  86. package/dist/styles/resets.js +0 -0
  87. package/dist/styles/search.css +192 -270
  88. package/dist/styles/search.js +0 -0
  89. package/dist/styles/sidebar.css +182 -69
  90. package/dist/styles/sidebar.js +0 -0
  91. package/dist/styles/variables.css +28 -89
  92. package/dist/styles/variables.js +0 -0
  93. package/dist/styles.css +3333 -0
  94. package/dist/styles.mjs +1 -0
  95. package/dist/use-strict-context-L0c8JKg4.js +16 -0
  96. package/dist/utils.d.ts +20 -0
  97. package/dist/utils.js +54 -0
  98. package/package.json +74 -22
  99. package/dist/mcp.js +0 -16003
  100. package/dist/styles/snippets.css +0 -132
  101. package/src/components/breadcrumbs.tsx +0 -94
  102. package/src/components/chat.tsx +0 -154
  103. package/src/components/dropdown.tsx +0 -91
  104. package/src/components/icons.tsx +0 -584
  105. package/src/components/index.ts +0 -9
  106. package/src/components/method.tsx +0 -146
  107. package/src/components/overview.tsx +0 -160
  108. package/src/components/primitives.tsx +0 -284
  109. package/src/components/properties.tsx +0 -130
  110. package/src/components/scripts/dropdown.ts +0 -78
  111. package/src/components/sdk.tsx +0 -403
  112. package/src/components/sidebar.tsx +0 -99
  113. package/src/components/snippets.tsx +0 -180
  114. package/src/contexts/component-generics.tsx +0 -48
  115. package/src/contexts/component-types.tsx +0 -5
  116. package/src/contexts/component.tsx +0 -32
  117. package/src/contexts/docs.tsx +0 -75
  118. package/src/contexts/index.tsx +0 -17
  119. package/src/contexts/markdown.tsx +0 -43
  120. package/src/contexts/navigation.tsx +0 -44
  121. package/src/contexts/search.tsx +0 -28
  122. package/src/contexts/use-components.tsx +0 -4
  123. package/src/index.ts +0 -6
  124. package/src/languages/go.tsx +0 -281
  125. package/src/languages/http.tsx +0 -321
  126. package/src/languages/index.ts +0 -26
  127. package/src/languages/java.tsx +0 -358
  128. package/src/languages/python.tsx +0 -255
  129. package/src/languages/ruby.tsx +0 -320
  130. package/src/languages/typescript.tsx +0 -393
  131. package/src/markdown/index.ts +0 -107
  132. package/src/markdown/md.ts +0 -45
  133. package/src/markdown/utils.ts +0 -49
  134. package/src/routing.ts +0 -238
  135. package/src/search/form.tsx +0 -127
  136. package/src/search/index.tsx +0 -1
  137. package/src/search/indexer.ts +0 -246
  138. package/src/search/mcp.ts +0 -61
  139. package/src/search/printer.tsx +0 -86
  140. package/src/search/providers/algolia.ts +0 -88
  141. package/src/search/providers/fuse.ts +0 -19
  142. package/src/search/providers/pagefind.ts +0 -17
  143. package/src/search/providers/walker.ts +0 -30
  144. package/src/search/results.tsx +0 -182
  145. package/src/search/state.ts +0 -64
  146. package/src/search/types.ts +0 -116
  147. package/src/style.ts +0 -196
  148. package/src/styles/main.css +0 -986
  149. package/src/styles/primitives.css +0 -580
  150. package/src/styles/resets.css +0 -39
  151. package/src/styles/search.css +0 -341
  152. package/src/styles/sidebar.css +0 -85
  153. package/src/styles/snippets.css +0 -130
  154. package/src/styles/variables.css +0 -86
  155. package/src/utils.ts +0 -41
@@ -0,0 +1,404 @@
1
+ import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
+ import { useLanguage } from "../contexts/docs.js";
3
+ import "../use-strict-context-L0c8JKg4.js";
4
+ import { useLanguageComponents } from "../contexts/index.js";
5
+ import { useComponents } from "../contexts/use-components.js";
6
+ import style_default from "../style.js";
7
+ import * as React$1 from "react";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+
10
+ //#region src/languages/java.tsx
11
+ var java_exports = /* @__PURE__ */ __exportAll({
12
+ Declaration: () => Declaration,
13
+ MethodSignature: () => MethodSignature,
14
+ Property: () => Property,
15
+ Type: () => Type,
16
+ TypeName: () => TypeName
17
+ });
18
+ function showFullType(type) {
19
+ return type.kind === "JavaTypeReference" && (type.typeName === "List" || type.typeParameters && type.typeParameters.length > 0);
20
+ }
21
+ const constStyle = {
22
+ string: style_default.LiteralString,
23
+ number: style_default.LiteralNumeric,
24
+ boolean: style_default.LiteralBoolean
25
+ };
26
+ function TypeName({ type, optional }) {
27
+ const Lang = useLanguageComponents();
28
+ if (type.kind === "JavaTypeReference" && type.typeName === "List") return "List";
29
+ return /* @__PURE__ */ jsx(Lang.Type, {
30
+ type,
31
+ optional
32
+ });
33
+ }
34
+ function Type({ type, optional }) {
35
+ const language = useLanguage();
36
+ const Lang = useLanguageComponents();
37
+ const { Join, SDKReference } = useComponents();
38
+ switch (type.kind) {
39
+ case "JavaTypeReference": {
40
+ const name = type.typeName.split(".").at(-1);
41
+ const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, {
42
+ type: param,
43
+ optional
44
+ }, key));
45
+ return /* @__PURE__ */ jsxs("span", {
46
+ className: style_default.Type,
47
+ children: [/* @__PURE__ */ jsx(SDKReference, {
48
+ stainlessPath: type.$ref,
49
+ children: name
50
+ }), params && params.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
51
+ /* @__PURE__ */ jsx("span", {
52
+ className: style_default.TypeBracket,
53
+ children: "<"
54
+ }),
55
+ /* @__PURE__ */ jsx(Join, {
56
+ items: params,
57
+ limit: 3,
58
+ children: /* @__PURE__ */ jsx("span", {
59
+ className: style_default.TextOperator,
60
+ children: ", "
61
+ })
62
+ }),
63
+ /* @__PURE__ */ jsx("span", {
64
+ className: style_default.TypeBracket,
65
+ children: ">"
66
+ })
67
+ ] }) : null]
68
+ });
69
+ }
70
+ case "JavaTypeClass":
71
+ case "JavaTypeUnion": return /* @__PURE__ */ jsx("span", {
72
+ className: style_default.Type,
73
+ children: /* @__PURE__ */ jsx("span", {
74
+ className: style_default.TypeKeyword,
75
+ children: "class"
76
+ })
77
+ });
78
+ case "JavaTypeEnum": return /* @__PURE__ */ jsx("span", {
79
+ className: style_default.Type,
80
+ children: /* @__PURE__ */ jsx("span", {
81
+ className: style_default.TypeKeyword,
82
+ children: language === "kotlin" ? "enum class" : "enum"
83
+ })
84
+ });
85
+ case "JavaTypeVoid": return /* @__PURE__ */ jsx("span", {
86
+ className: style_default.Type,
87
+ children: /* @__PURE__ */ jsx("span", {
88
+ className: style_default.TypeKeyword,
89
+ children: language === "kotlin" ? "Nothing?" : "Void"
90
+ })
91
+ });
92
+ case "JavaTypeBoolean": return /* @__PURE__ */ jsx("span", {
93
+ className: style_default.Type,
94
+ children: /* @__PURE__ */ jsx("span", {
95
+ className: style_default.TypeKeyword,
96
+ children: language === "kotlin" || optional ? "Boolean" : "boolean"
97
+ })
98
+ });
99
+ case "JavaTypeDouble": return /* @__PURE__ */ jsx("span", {
100
+ className: style_default.Type,
101
+ children: /* @__PURE__ */ jsx("span", {
102
+ className: style_default.TypeKeyword,
103
+ children: language === "kotlin" || optional ? "Double" : "double"
104
+ })
105
+ });
106
+ case "JavaTypeLong": return /* @__PURE__ */ jsx("span", {
107
+ className: style_default.Type,
108
+ children: /* @__PURE__ */ jsx("span", {
109
+ className: style_default.TypeKeyword,
110
+ children: language === "kotlin" || optional ? "Long" : "long"
111
+ })
112
+ });
113
+ case "JavaTypeString": return /* @__PURE__ */ jsx("span", {
114
+ className: style_default.Type,
115
+ children: /* @__PURE__ */ jsx("span", {
116
+ className: style_default.TypeString,
117
+ children: "String"
118
+ })
119
+ });
120
+ case "JavaTypeConstant": return /* @__PURE__ */ jsxs("span", {
121
+ className: style_default.Type,
122
+ children: [/* @__PURE__ */ jsx("span", {
123
+ className: style_default.TypeKeyword,
124
+ children: "JsonValue"
125
+ }), ";"]
126
+ });
127
+ }
128
+ }
129
+ function MethodSignature({ decl }) {
130
+ const Lang = useLanguageComponents();
131
+ const language = useLanguage();
132
+ const { Join, Tooltip } = useComponents();
133
+ const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsxs(Tooltip, {
134
+ content: /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
135
+ children: [/* @__PURE__ */ jsx("span", {
136
+ className: style_default.TextIdentifier,
137
+ children: param.ident
138
+ }), param.hasDefault && /* @__PURE__ */ jsxs(Fragment$1, { children: [
139
+ " ",
140
+ /* @__PURE__ */ jsx("span", {
141
+ className: style_default.TextOperator,
142
+ children: "="
143
+ }),
144
+ " ",
145
+ /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
146
+ /* @__PURE__ */ jsx("span", {
147
+ className: style_default.TextOperator,
148
+ children: "."
149
+ }),
150
+ /* @__PURE__ */ jsx("span", {
151
+ className: style_default.TextIdentifier,
152
+ children: "none"
153
+ }),
154
+ /* @__PURE__ */ jsx("span", {
155
+ className: style_default.TextOperator,
156
+ children: "()"
157
+ })
158
+ ] })]
159
+ }) }, i));
160
+ return /* @__PURE__ */ jsx("div", {
161
+ className: style_default.MethodSignature,
162
+ children: /* @__PURE__ */ jsxs("span", {
163
+ className: style_default.SignatureTitle,
164
+ children: [
165
+ decl.returnType && language !== "kotlin" && /* @__PURE__ */ jsxs("span", {
166
+ className: style_default.SignatureReturns,
167
+ children: [/* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType }), " "]
168
+ }),
169
+ decl.qualified && /* @__PURE__ */ jsx("span", {
170
+ className: style_default.SignatureQualified,
171
+ children: /* @__PURE__ */ jsx("span", {
172
+ className: style_default.TextIdentifier,
173
+ children: decl.qualified?.slice(0, -decl.ident.length)
174
+ })
175
+ }),
176
+ /* @__PURE__ */ jsx("span", {
177
+ className: style_default.SignatureName,
178
+ children: /* @__PURE__ */ jsx("span", {
179
+ className: style_default.TextIdentifier,
180
+ children: decl.ident
181
+ })
182
+ }),
183
+ /* @__PURE__ */ jsxs("span", {
184
+ className: style_default.MethodSignature,
185
+ children: [
186
+ /* @__PURE__ */ jsx("span", {
187
+ className: style_default.SignatureParen,
188
+ children: "("
189
+ }),
190
+ /* @__PURE__ */ jsx("span", {
191
+ className: style_default.SignatureParams,
192
+ children: /* @__PURE__ */ jsx(Join, {
193
+ items: params,
194
+ children: /* @__PURE__ */ jsx("span", {
195
+ className: style_default.TextOperator,
196
+ children: ", "
197
+ })
198
+ })
199
+ }),
200
+ /* @__PURE__ */ jsxs("span", {
201
+ className: style_default.SignatureParen,
202
+ children: [")", " "]
203
+ }),
204
+ decl.returnType && language === "kotlin" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
205
+ /* @__PURE__ */ jsx("span", {
206
+ className: style_default.TextOperator,
207
+ children: ":"
208
+ }),
209
+ " ",
210
+ /* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType })
211
+ ] })
212
+ ]
213
+ })
214
+ ]
215
+ })
216
+ });
217
+ }
218
+ function Property({ decl, children }) {
219
+ const Docs = useComponents();
220
+ const Lang = useLanguageComponents();
221
+ const language = useLanguage();
222
+ if (!decl) return null;
223
+ switch (decl.kind) {
224
+ case "JavaDeclProperty": {
225
+ const typeRaw = /* @__PURE__ */ jsx(Lang.Type, {
226
+ type: decl.type,
227
+ optional: decl.optional
228
+ });
229
+ const typeWrapped = decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
230
+ /* @__PURE__ */ jsx("span", {
231
+ className: style_default.TypeKeyword,
232
+ children: "Optional"
233
+ }),
234
+ /* @__PURE__ */ jsx("span", {
235
+ className: style_default.TypeBracket,
236
+ children: "<"
237
+ }),
238
+ typeRaw,
239
+ /* @__PURE__ */ jsx("span", {
240
+ className: style_default.TypeBracket,
241
+ children: ">"
242
+ })
243
+ ] }) : typeRaw;
244
+ const badges = /* @__PURE__ */ jsx(Fragment$1, { children: decl.type.kind === "JavaTypeConstant" && /* @__PURE__ */ jsx(Docs.Tooltip, {
245
+ content: /* @__PURE__ */ jsx("span", {
246
+ className: style_default.TextIdentifier,
247
+ children: decl.type.value
248
+ }),
249
+ children: /* @__PURE__ */ jsx("span", {
250
+ className: style_default.TextIdentifier,
251
+ children: "constant"
252
+ })
253
+ }) });
254
+ return children({
255
+ name: decl.ident,
256
+ typeName: /* @__PURE__ */ jsx(Lang.TypeName, {
257
+ type: decl.type,
258
+ optional: decl.optional
259
+ }),
260
+ type: showFullType(decl.type) && typeWrapped,
261
+ badges
262
+ });
263
+ }
264
+ case "JavaDeclConst": return children({
265
+ name: decl.ident,
266
+ typeName: "const",
267
+ type: /* @__PURE__ */ jsx("span", {
268
+ className: constStyle[typeof decl.value],
269
+ children: JSON.stringify(decl.value)
270
+ })
271
+ });
272
+ case "JavaDeclType": {
273
+ const typeName = decl.type.kind === "JavaTypeUnion" ? "union" : decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
274
+ return children({
275
+ name: decl.ident,
276
+ typeName
277
+ });
278
+ }
279
+ case "JavaDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
280
+ }
281
+ }
282
+ function Declaration({ decl }) {
283
+ const Docs = useComponents();
284
+ const Lang = useLanguageComponents();
285
+ const language = useLanguage();
286
+ if (!decl) return null;
287
+ switch (decl.kind) {
288
+ case "JavaDeclConst": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
289
+ /* @__PURE__ */ jsx("span", {
290
+ className: style_default.TextIdentifier,
291
+ children: decl.ident
292
+ }),
293
+ /* @__PURE__ */ jsx("span", {
294
+ className: style_default.TextPunctuation,
295
+ children: "("
296
+ }),
297
+ JSON.stringify(decl.value),
298
+ /* @__PURE__ */ jsx("span", {
299
+ className: style_default.TextPunctuation,
300
+ children: ")"
301
+ })
302
+ ] });
303
+ case "JavaDeclType": {
304
+ const keyword = decl.type.kind === "JavaTypeEnum" ? language === "kotlin" ? "enum class" : "enum" : "class";
305
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
306
+ /* @__PURE__ */ jsx("span", {
307
+ className: style_default.TextKeyword,
308
+ children: keyword
309
+ }),
310
+ " ",
311
+ /* @__PURE__ */ jsx("span", {
312
+ className: style_default.TextIdentifier,
313
+ children: decl.ident
314
+ }),
315
+ /* @__PURE__ */ jsx("span", {
316
+ className: style_default.TextPunctuation,
317
+ children: ":"
318
+ }),
319
+ decl.type.kind === "JavaTypeUnion" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
320
+ " ",
321
+ /* @__PURE__ */ jsx(Docs.Tooltip, {
322
+ content: "A class that can be one of several variants.",
323
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
324
+ id: "java-union",
325
+ children: "union"
326
+ })
327
+ }),
328
+ " "
329
+ ] })
330
+ ] });
331
+ }
332
+ case "JavaDeclProperty": {
333
+ const inlineType = /* @__PURE__ */ jsx(Lang.Type, {
334
+ type: decl.type,
335
+ optional: decl.optional
336
+ });
337
+ const ident = /* @__PURE__ */ jsx("span", {
338
+ className: style_default.TypePropertyName,
339
+ children: /* @__PURE__ */ jsx("span", {
340
+ className: style_default.TextIdentifier,
341
+ children: decl.ident
342
+ })
343
+ });
344
+ const suffix = decl.type.kind === "JavaTypeConstant" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx(Docs.Tooltip, {
345
+ content: /* @__PURE__ */ jsx("span", {
346
+ className: style_default.TextIdentifier,
347
+ children: decl.type.value
348
+ }),
349
+ children: /* @__PURE__ */ jsx(Docs.Badge, {
350
+ id: "java-constant",
351
+ children: "constant"
352
+ })
353
+ })] }) : null;
354
+ if (language === "kotlin") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
355
+ ident,
356
+ /* @__PURE__ */ jsx("span", {
357
+ className: style_default.TextPunctuation,
358
+ children: ":"
359
+ }),
360
+ " ",
361
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
362
+ /* @__PURE__ */ jsx("span", {
363
+ className: style_default.TypeReference,
364
+ children: "Optional"
365
+ }),
366
+ /* @__PURE__ */ jsx("span", {
367
+ className: style_default.TypeBracket,
368
+ children: "<"
369
+ }),
370
+ inlineType,
371
+ /* @__PURE__ */ jsx("span", {
372
+ className: style_default.TypeBracket,
373
+ children: ">"
374
+ })
375
+ ] }) : inlineType,
376
+ suffix
377
+ ] });
378
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
379
+ decl.optional ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
380
+ /* @__PURE__ */ jsx("span", {
381
+ className: style_default.TypeReference,
382
+ children: "Optional"
383
+ }),
384
+ /* @__PURE__ */ jsx("span", {
385
+ className: style_default.TypeBracket,
386
+ children: "<"
387
+ }),
388
+ inlineType,
389
+ /* @__PURE__ */ jsx("span", {
390
+ className: style_default.TypeBracket,
391
+ children: ">"
392
+ })
393
+ ] }) : inlineType,
394
+ " ",
395
+ ident,
396
+ suffix
397
+ ] });
398
+ }
399
+ case "JavaDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
400
+ }
401
+ }
402
+
403
+ //#endregion
404
+ export { Declaration, MethodSignature, Property, Type, TypeName, java_exports as t };
@@ -0,0 +1,40 @@
1
+ import { p as PhpAST } from "../index-pvh-w1xa.js";
2
+ import { PropertyFn } from "./index.js";
3
+ import * as React$1 from "react";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+
6
+ //#region src/languages/php.d.ts
7
+ declare namespace php_d_exports {
8
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
+ }
10
+ type TypeProps = {
11
+ type: PhpAST.PhpType;
12
+ };
13
+ declare function TypeName({
14
+ type
15
+ }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
+ declare function Type({
17
+ type
18
+ }: TypeProps): react_jsx_runtime0.JSX.Element;
19
+ type MethodSignatureProps = {
20
+ decl: PhpAST.PhpDeclMethod;
21
+ };
22
+ declare function MethodSignature({
23
+ decl
24
+ }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
25
+ type PropertyProps = {
26
+ decl: PhpAST.PhpDeclaration;
27
+ children: PropertyFn;
28
+ };
29
+ declare function Property({
30
+ decl,
31
+ children
32
+ }: PropertyProps): React$1.ReactNode;
33
+ type DeclarationProps = {
34
+ decl: PhpAST.PhpDeclaration;
35
+ };
36
+ declare function Declaration({
37
+ decl
38
+ }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
39
+ //#endregion
40
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, php_d_exports as t };