@powerhousedao/builder-tools 4.1.0-dev.59 → 4.1.0-dev.61

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 (70) hide show
  1. package/dist/browser.d.ts +2 -0
  2. package/dist/browser.d.ts.map +1 -0
  3. package/dist/browser.js +2 -0
  4. package/dist/browser.js.map +1 -0
  5. package/dist/connect-studio/server.d.ts.map +1 -1
  6. package/dist/connect-studio/server.js +48 -9
  7. package/dist/connect-studio/server.js.map +1 -1
  8. package/dist/connect-studio/studio.d.ts.map +1 -1
  9. package/dist/connect-studio/studio.js +3 -0
  10. package/dist/connect-studio/studio.js.map +1 -1
  11. package/dist/connect-studio/types.d.ts +2 -0
  12. package/dist/connect-studio/types.d.ts.map +1 -1
  13. package/dist/connect-utils/env-config.d.ts +727 -0
  14. package/dist/connect-utils/env-config.d.ts.map +1 -0
  15. package/dist/connect-utils/env-config.js +436 -0
  16. package/dist/connect-utils/env-config.js.map +1 -0
  17. package/dist/connect-utils/helpers.d.ts.map +1 -1
  18. package/dist/connect-utils/helpers.js +1 -1
  19. package/dist/connect-utils/helpers.js.map +1 -1
  20. package/dist/connect-utils/index.d.ts +5 -0
  21. package/dist/connect-utils/index.d.ts.map +1 -1
  22. package/dist/connect-utils/index.js +5 -0
  23. package/dist/connect-utils/index.js.map +1 -1
  24. package/dist/connect-utils/runner.d.ts +21 -0
  25. package/dist/connect-utils/runner.d.ts.map +1 -0
  26. package/dist/connect-utils/runner.js +59 -0
  27. package/dist/connect-utils/runner.js.map +1 -0
  28. package/dist/connect-utils/types.d.ts +10 -0
  29. package/dist/connect-utils/types.d.ts.map +1 -0
  30. package/dist/connect-utils/types.js +2 -0
  31. package/dist/connect-utils/types.js.map +1 -0
  32. package/dist/connect-utils/vite-config.d.ts +61 -0
  33. package/dist/connect-utils/vite-config.d.ts.map +1 -0
  34. package/dist/connect-utils/vite-config.js +198 -0
  35. package/dist/connect-utils/vite-config.js.map +1 -0
  36. package/dist/connect-utils/vite-plugins/ph-external-packages.d.ts +2 -0
  37. package/dist/connect-utils/vite-plugins/ph-external-packages.d.ts.map +1 -0
  38. package/dist/connect-utils/vite-plugins/ph-external-packages.js +48 -0
  39. package/dist/connect-utils/vite-plugins/ph-external-packages.js.map +1 -0
  40. package/dist/document-model-editor/components/button.d.ts +1 -3
  41. package/dist/document-model-editor/components/button.d.ts.map +1 -1
  42. package/dist/document-model-editor/components/code-editors/utils.d.ts +6 -6
  43. package/dist/document-model-editor/document-model-editor.stories.d.ts +96 -4
  44. package/dist/document-model-editor/document-model-editor.stories.d.ts.map +1 -1
  45. package/dist/document-model-editor/document-model-editor.stories.js +5 -7
  46. package/dist/document-model-editor/document-model-editor.stories.js.map +1 -1
  47. package/dist/document-model-editor/editor.d.ts +1 -2
  48. package/dist/document-model-editor/editor.d.ts.map +1 -1
  49. package/dist/document-model-editor/editor.js +6 -6
  50. package/dist/document-model-editor/editor.js.map +1 -1
  51. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts +4 -0
  52. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts.map +1 -0
  53. package/dist/document-model-editor/hooks/useDocumentModelDocument.js +8 -0
  54. package/dist/document-model-editor/hooks/useDocumentModelDocument.js.map +1 -0
  55. package/dist/document-model-editor/index.d.ts +1 -0
  56. package/dist/document-model-editor/index.d.ts.map +1 -1
  57. package/dist/document-model-editor/index.js +1 -0
  58. package/dist/document-model-editor/index.js.map +1 -1
  59. package/dist/document-model-editor/schemas/inputs.d.ts +3 -3
  60. package/dist/editor-utils/storybook.d.ts +5 -4
  61. package/dist/editor-utils/storybook.d.ts.map +1 -1
  62. package/dist/editor-utils/storybook.js +17 -27
  63. package/dist/editor-utils/storybook.js.map +1 -1
  64. package/dist/index.d.ts +2 -3
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +2 -3
  67. package/dist/index.js.map +1 -1
  68. package/dist/style.css +1 -894
  69. package/dist/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +37 -13
@@ -0,0 +1,727 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Build-time configuration schema
4
+ */
5
+ declare const buildEnvSchema: z.ZodObject<{
6
+ /**
7
+ * Path to powerhouse config file
8
+ * @default "powerhouse.config.json"
9
+ */
10
+ PH_CONFIG_PATH: z.ZodOptional<z.ZodString>;
11
+ /**
12
+ * Comma-separated list of package names to load
13
+ * @example "package1,package2"
14
+ */
15
+ PH_PACKAGES: z.ZodOptional<z.ZodString>;
16
+ /**
17
+ * Path to local package to load during development
18
+ */
19
+ PH_LOCAL_PACKAGE: z.ZodOptional<z.ZodString>;
20
+ /**
21
+ * Disable loading of local package
22
+ * @default false
23
+ */
24
+ PH_DISABLE_LOCAL_PACKAGE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
25
+ /**
26
+ * Sentry authentication token for uploading source maps
27
+ */
28
+ PH_SENTRY_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
29
+ /**
30
+ * Sentry organization slug
31
+ */
32
+ PH_SENTRY_ORG: z.ZodOptional<z.ZodString>;
33
+ /**
34
+ * Sentry project slug
35
+ */
36
+ PH_SENTRY_PROJECT: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ PH_DISABLE_LOCAL_PACKAGE: boolean;
39
+ PH_CONFIG_PATH?: string | undefined;
40
+ PH_PACKAGES?: string | undefined;
41
+ PH_LOCAL_PACKAGE?: string | undefined;
42
+ PH_SENTRY_AUTH_TOKEN?: string | undefined;
43
+ PH_SENTRY_ORG?: string | undefined;
44
+ PH_SENTRY_PROJECT?: string | undefined;
45
+ }, {
46
+ PH_CONFIG_PATH?: string | undefined;
47
+ PH_PACKAGES?: string | undefined;
48
+ PH_LOCAL_PACKAGE?: string | undefined;
49
+ PH_DISABLE_LOCAL_PACKAGE?: boolean | "true" | "false" | undefined;
50
+ PH_SENTRY_AUTH_TOKEN?: string | undefined;
51
+ PH_SENTRY_ORG?: string | undefined;
52
+ PH_SENTRY_PROJECT?: string | undefined;
53
+ }>;
54
+ /**
55
+ * Complete runtime environment schema (all PH_CONNECT_* vars)
56
+ */
57
+ export declare const runtimeEnvSchema: z.ZodObject<{
58
+ /**
59
+ * Application version number
60
+ * @default "unknown"
61
+ */
62
+ PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
63
+ /**
64
+ * Log level for the application
65
+ * @default "info"
66
+ */
67
+ PH_CONNECT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
68
+ /**
69
+ * Whether app requires hard refresh on updates
70
+ * @default true
71
+ */
72
+ PH_CONNECT_REQUIRES_HARD_REFRESH: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
73
+ /**
74
+ * Show warning when app version is outdated
75
+ * @default false
76
+ */
77
+ PH_CONNECT_WARN_OUTDATED_APP: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
78
+ /**
79
+ * Enable studio mode features
80
+ * @default false
81
+ */
82
+ PH_CONNECT_STUDIO_MODE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
83
+ /**
84
+ * Base path for router
85
+ * @default "/"
86
+ */
87
+ PH_CONNECT_ROUTER_BASENAME: z.ZodDefault<z.ZodString>;
88
+ /**
89
+ * Default drives URL to load on startup
90
+ */
91
+ PH_CONNECT_DEFAULT_DRIVES_URL: z.ZodOptional<z.ZodString>;
92
+ /**
93
+ * Strategy for preserving drives
94
+ */
95
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY: z.ZodOptional<z.ZodString>;
96
+ /**
97
+ * Interval in milliseconds to check for version updates
98
+ * @default 3600000 (1 hour)
99
+ */
100
+ PH_CONNECT_VERSION_CHECK_INTERVAL: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
101
+ /**
102
+ * CLI version number
103
+ */
104
+ PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
105
+ /**
106
+ * Chunk size for file upload operations
107
+ * @default 50
108
+ */
109
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
110
+ } & {
111
+ /**
112
+ * Hide the "Add Drive" button completely
113
+ * @default false
114
+ */
115
+ PH_CONNECT_DISABLE_ADD_DRIVE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
116
+ /**
117
+ * Show search bar in the UI
118
+ * @default false
119
+ */
120
+ PH_CONNECT_SEARCH_BAR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
121
+ /**
122
+ * Hide document model selection in settings
123
+ * @default true
124
+ */
125
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
126
+ /**
127
+ * Comma-separated list of enabled editor types
128
+ * Use "*" to enable all editors
129
+ * @example "editor1,editor2" or "*"
130
+ */
131
+ PH_CONNECT_ENABLED_EDITORS: z.ZodOptional<z.ZodString>;
132
+ /**
133
+ * Comma-separated list of disabled editor types
134
+ * @default "powerhouse/document-drive"
135
+ */
136
+ PH_CONNECT_DISABLED_EDITORS: z.ZodDefault<z.ZodString>;
137
+ } & {
138
+ /**
139
+ * Enable public drives section
140
+ * @default true
141
+ */
142
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
143
+ /**
144
+ * Allow adding public drives
145
+ * @default true
146
+ */
147
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
148
+ /**
149
+ * Allow deleting public drives
150
+ * @default true
151
+ */
152
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
153
+ /**
154
+ * Enable cloud drives section
155
+ * @default true
156
+ */
157
+ PH_CONNECT_CLOUD_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
158
+ /**
159
+ * Allow adding cloud drives
160
+ * @default true
161
+ */
162
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
163
+ /**
164
+ * Allow deleting cloud drives
165
+ * @default true
166
+ */
167
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
168
+ /**
169
+ * Enable local drives section
170
+ * @default true
171
+ */
172
+ PH_CONNECT_LOCAL_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
173
+ /**
174
+ * Allow adding local drives
175
+ * @default true
176
+ */
177
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
178
+ /**
179
+ * Allow deleting local drives
180
+ * @default true
181
+ */
182
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
183
+ } & {
184
+ /**
185
+ * Name of the analytics database
186
+ * Defaults to basename + ":analytics"
187
+ */
188
+ PH_CONNECT_ANALYTICS_DATABASE_NAME: z.ZodOptional<z.ZodString>;
189
+ /**
190
+ * Disable analytics database worker
191
+ * @default false
192
+ */
193
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
194
+ /**
195
+ * Enable diff analytics tracking
196
+ * @default false
197
+ */
198
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
199
+ /**
200
+ * Enable drive analytics tracking
201
+ * @default true
202
+ */
203
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
204
+ /**
205
+ * Enable external processors for analytics
206
+ * @default true
207
+ */
208
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
209
+ /**
210
+ * Disable loading of external packages
211
+ * @default false
212
+ */
213
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
214
+ /**
215
+ * Google Analytics tracking ID
216
+ */
217
+ PH_CONNECT_GA_TRACKING_ID: z.ZodOptional<z.ZodString>;
218
+ } & {
219
+ /**
220
+ * Sentry release identifier
221
+ * Defaults to app version
222
+ */
223
+ PH_CONNECT_SENTRY_RELEASE: z.ZodOptional<z.ZodString>;
224
+ /**
225
+ * Sentry DSN for error reporting
226
+ */
227
+ PH_CONNECT_SENTRY_DSN: z.ZodOptional<z.ZodString>;
228
+ /**
229
+ * Sentry environment name
230
+ * @default "prod"
231
+ */
232
+ PH_CONNECT_SENTRY_ENV: z.ZodDefault<z.ZodString>;
233
+ /**
234
+ * Enable Sentry performance tracing
235
+ * @default false
236
+ */
237
+ PH_CONNECT_SENTRY_TRACING_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
238
+ } & {
239
+ /**
240
+ * Renown authentication service URL
241
+ * @default "https://auth.renown.id"
242
+ */
243
+ PH_CONNECT_RENOWN_URL: z.ZodDefault<z.ZodString>;
244
+ /**
245
+ * Renown network ID
246
+ * @default "eip155"
247
+ */
248
+ PH_CONNECT_RENOWN_NETWORK_ID: z.ZodDefault<z.ZodString>;
249
+ /**
250
+ * Renown chain ID
251
+ * @default 1
252
+ */
253
+ PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ PH_CONNECT_VERSION: string;
256
+ PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
257
+ PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
258
+ PH_CONNECT_WARN_OUTDATED_APP: boolean;
259
+ PH_CONNECT_STUDIO_MODE: boolean;
260
+ PH_CONNECT_ROUTER_BASENAME: string;
261
+ PH_CONNECT_VERSION_CHECK_INTERVAL: number;
262
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: number;
263
+ PH_CONNECT_DISABLE_ADD_DRIVE: boolean;
264
+ PH_CONNECT_SEARCH_BAR_ENABLED: boolean;
265
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: boolean;
266
+ PH_CONNECT_DISABLED_EDITORS: string;
267
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED: boolean;
268
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: boolean;
269
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: boolean;
270
+ PH_CONNECT_CLOUD_DRIVES_ENABLED: boolean;
271
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: boolean;
272
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: boolean;
273
+ PH_CONNECT_LOCAL_DRIVES_ENABLED: boolean;
274
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: boolean;
275
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: boolean;
276
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: boolean;
277
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED: boolean;
278
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: boolean;
279
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: boolean;
280
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: boolean;
281
+ PH_CONNECT_SENTRY_ENV: string;
282
+ PH_CONNECT_SENTRY_TRACING_ENABLED: boolean;
283
+ PH_CONNECT_RENOWN_URL: string;
284
+ PH_CONNECT_RENOWN_NETWORK_ID: string;
285
+ PH_CONNECT_RENOWN_CHAIN_ID: number;
286
+ PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
287
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
288
+ PH_CONNECT_CLI_VERSION?: string | undefined;
289
+ PH_CONNECT_ENABLED_EDITORS?: string | undefined;
290
+ PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
291
+ PH_CONNECT_GA_TRACKING_ID?: string | undefined;
292
+ PH_CONNECT_SENTRY_RELEASE?: string | undefined;
293
+ PH_CONNECT_SENTRY_DSN?: string | undefined;
294
+ }, {
295
+ PH_CONNECT_VERSION?: string | undefined;
296
+ PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
297
+ PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
298
+ PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
299
+ PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
300
+ PH_CONNECT_ROUTER_BASENAME?: string | undefined;
301
+ PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
302
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
303
+ PH_CONNECT_VERSION_CHECK_INTERVAL?: string | number | undefined;
304
+ PH_CONNECT_CLI_VERSION?: string | undefined;
305
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE?: string | number | undefined;
306
+ PH_CONNECT_DISABLE_ADD_DRIVE?: boolean | "true" | "false" | undefined;
307
+ PH_CONNECT_SEARCH_BAR_ENABLED?: boolean | "true" | "false" | undefined;
308
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS?: boolean | "true" | "false" | undefined;
309
+ PH_CONNECT_ENABLED_EDITORS?: string | undefined;
310
+ PH_CONNECT_DISABLED_EDITORS?: string | undefined;
311
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
312
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
313
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
314
+ PH_CONNECT_CLOUD_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
315
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
316
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
317
+ PH_CONNECT_LOCAL_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
318
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
319
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
320
+ PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
321
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED?: boolean | "true" | "false" | undefined;
322
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
323
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
324
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
325
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED?: boolean | "true" | "false" | undefined;
326
+ PH_CONNECT_GA_TRACKING_ID?: string | undefined;
327
+ PH_CONNECT_SENTRY_RELEASE?: string | undefined;
328
+ PH_CONNECT_SENTRY_DSN?: string | undefined;
329
+ PH_CONNECT_SENTRY_ENV?: string | undefined;
330
+ PH_CONNECT_SENTRY_TRACING_ENABLED?: boolean | "true" | "false" | undefined;
331
+ PH_CONNECT_RENOWN_URL?: string | undefined;
332
+ PH_CONNECT_RENOWN_NETWORK_ID?: string | undefined;
333
+ PH_CONNECT_RENOWN_CHAIN_ID?: string | number | undefined;
334
+ }>;
335
+ /**
336
+ * Complete environment schema (build + runtime)
337
+ */
338
+ export declare const connectEnvSchema: z.ZodObject<{
339
+ /**
340
+ * Path to powerhouse config file
341
+ * @default "powerhouse.config.json"
342
+ */
343
+ PH_CONFIG_PATH: z.ZodOptional<z.ZodString>;
344
+ /**
345
+ * Comma-separated list of package names to load
346
+ * @example "package1,package2"
347
+ */
348
+ PH_PACKAGES: z.ZodOptional<z.ZodString>;
349
+ /**
350
+ * Path to local package to load during development
351
+ */
352
+ PH_LOCAL_PACKAGE: z.ZodOptional<z.ZodString>;
353
+ /**
354
+ * Disable loading of local package
355
+ * @default false
356
+ */
357
+ PH_DISABLE_LOCAL_PACKAGE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
358
+ /**
359
+ * Sentry authentication token for uploading source maps
360
+ */
361
+ PH_SENTRY_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
362
+ /**
363
+ * Sentry organization slug
364
+ */
365
+ PH_SENTRY_ORG: z.ZodOptional<z.ZodString>;
366
+ /**
367
+ * Sentry project slug
368
+ */
369
+ PH_SENTRY_PROJECT: z.ZodOptional<z.ZodString>;
370
+ } & {
371
+ /**
372
+ * Application version number
373
+ * @default "unknown"
374
+ */
375
+ PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
376
+ /**
377
+ * Log level for the application
378
+ * @default "info"
379
+ */
380
+ PH_CONNECT_LOG_LEVEL: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
381
+ /**
382
+ * Whether app requires hard refresh on updates
383
+ * @default true
384
+ */
385
+ PH_CONNECT_REQUIRES_HARD_REFRESH: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
386
+ /**
387
+ * Show warning when app version is outdated
388
+ * @default false
389
+ */
390
+ PH_CONNECT_WARN_OUTDATED_APP: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
391
+ /**
392
+ * Enable studio mode features
393
+ * @default false
394
+ */
395
+ PH_CONNECT_STUDIO_MODE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
396
+ /**
397
+ * Base path for router
398
+ * @default "/"
399
+ */
400
+ PH_CONNECT_ROUTER_BASENAME: z.ZodDefault<z.ZodString>;
401
+ /**
402
+ * Default drives URL to load on startup
403
+ */
404
+ PH_CONNECT_DEFAULT_DRIVES_URL: z.ZodOptional<z.ZodString>;
405
+ /**
406
+ * Strategy for preserving drives
407
+ */
408
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY: z.ZodOptional<z.ZodString>;
409
+ /**
410
+ * Interval in milliseconds to check for version updates
411
+ * @default 3600000 (1 hour)
412
+ */
413
+ PH_CONNECT_VERSION_CHECK_INTERVAL: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
414
+ /**
415
+ * CLI version number
416
+ */
417
+ PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
418
+ /**
419
+ * Chunk size for file upload operations
420
+ * @default 50
421
+ */
422
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
423
+ } & {
424
+ /**
425
+ * Hide the "Add Drive" button completely
426
+ * @default false
427
+ */
428
+ PH_CONNECT_DISABLE_ADD_DRIVE: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
429
+ /**
430
+ * Show search bar in the UI
431
+ * @default false
432
+ */
433
+ PH_CONNECT_SEARCH_BAR_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
434
+ /**
435
+ * Hide document model selection in settings
436
+ * @default true
437
+ */
438
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
439
+ /**
440
+ * Comma-separated list of enabled editor types
441
+ * Use "*" to enable all editors
442
+ * @example "editor1,editor2" or "*"
443
+ */
444
+ PH_CONNECT_ENABLED_EDITORS: z.ZodOptional<z.ZodString>;
445
+ /**
446
+ * Comma-separated list of disabled editor types
447
+ * @default "powerhouse/document-drive"
448
+ */
449
+ PH_CONNECT_DISABLED_EDITORS: z.ZodDefault<z.ZodString>;
450
+ } & {
451
+ /**
452
+ * Enable public drives section
453
+ * @default true
454
+ */
455
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
456
+ /**
457
+ * Allow adding public drives
458
+ * @default true
459
+ */
460
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
461
+ /**
462
+ * Allow deleting public drives
463
+ * @default true
464
+ */
465
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
466
+ /**
467
+ * Enable cloud drives section
468
+ * @default true
469
+ */
470
+ PH_CONNECT_CLOUD_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
471
+ /**
472
+ * Allow adding cloud drives
473
+ * @default true
474
+ */
475
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
476
+ /**
477
+ * Allow deleting cloud drives
478
+ * @default true
479
+ */
480
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
481
+ /**
482
+ * Enable local drives section
483
+ * @default true
484
+ */
485
+ PH_CONNECT_LOCAL_DRIVES_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
486
+ /**
487
+ * Allow adding local drives
488
+ * @default true
489
+ */
490
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
491
+ /**
492
+ * Allow deleting local drives
493
+ * @default true
494
+ */
495
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
496
+ } & {
497
+ /**
498
+ * Name of the analytics database
499
+ * Defaults to basename + ":analytics"
500
+ */
501
+ PH_CONNECT_ANALYTICS_DATABASE_NAME: z.ZodOptional<z.ZodString>;
502
+ /**
503
+ * Disable analytics database worker
504
+ * @default false
505
+ */
506
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
507
+ /**
508
+ * Enable diff analytics tracking
509
+ * @default false
510
+ */
511
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
512
+ /**
513
+ * Enable drive analytics tracking
514
+ * @default true
515
+ */
516
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
517
+ /**
518
+ * Enable external processors for analytics
519
+ * @default true
520
+ */
521
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
522
+ /**
523
+ * Disable loading of external packages
524
+ * @default false
525
+ */
526
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
527
+ /**
528
+ * Google Analytics tracking ID
529
+ */
530
+ PH_CONNECT_GA_TRACKING_ID: z.ZodOptional<z.ZodString>;
531
+ } & {
532
+ /**
533
+ * Sentry release identifier
534
+ * Defaults to app version
535
+ */
536
+ PH_CONNECT_SENTRY_RELEASE: z.ZodOptional<z.ZodString>;
537
+ /**
538
+ * Sentry DSN for error reporting
539
+ */
540
+ PH_CONNECT_SENTRY_DSN: z.ZodOptional<z.ZodString>;
541
+ /**
542
+ * Sentry environment name
543
+ * @default "prod"
544
+ */
545
+ PH_CONNECT_SENTRY_ENV: z.ZodDefault<z.ZodString>;
546
+ /**
547
+ * Enable Sentry performance tracing
548
+ * @default false
549
+ */
550
+ PH_CONNECT_SENTRY_TRACING_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
551
+ } & {
552
+ /**
553
+ * Renown authentication service URL
554
+ * @default "https://auth.renown.id"
555
+ */
556
+ PH_CONNECT_RENOWN_URL: z.ZodDefault<z.ZodString>;
557
+ /**
558
+ * Renown network ID
559
+ * @default "eip155"
560
+ */
561
+ PH_CONNECT_RENOWN_NETWORK_ID: z.ZodDefault<z.ZodString>;
562
+ /**
563
+ * Renown chain ID
564
+ * @default 1
565
+ */
566
+ PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ PH_DISABLE_LOCAL_PACKAGE: boolean;
569
+ PH_CONNECT_VERSION: string;
570
+ PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
571
+ PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
572
+ PH_CONNECT_WARN_OUTDATED_APP: boolean;
573
+ PH_CONNECT_STUDIO_MODE: boolean;
574
+ PH_CONNECT_ROUTER_BASENAME: string;
575
+ PH_CONNECT_VERSION_CHECK_INTERVAL: number;
576
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: number;
577
+ PH_CONNECT_DISABLE_ADD_DRIVE: boolean;
578
+ PH_CONNECT_SEARCH_BAR_ENABLED: boolean;
579
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: boolean;
580
+ PH_CONNECT_DISABLED_EDITORS: string;
581
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED: boolean;
582
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: boolean;
583
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: boolean;
584
+ PH_CONNECT_CLOUD_DRIVES_ENABLED: boolean;
585
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: boolean;
586
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: boolean;
587
+ PH_CONNECT_LOCAL_DRIVES_ENABLED: boolean;
588
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: boolean;
589
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: boolean;
590
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: boolean;
591
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED: boolean;
592
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: boolean;
593
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: boolean;
594
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: boolean;
595
+ PH_CONNECT_SENTRY_ENV: string;
596
+ PH_CONNECT_SENTRY_TRACING_ENABLED: boolean;
597
+ PH_CONNECT_RENOWN_URL: string;
598
+ PH_CONNECT_RENOWN_NETWORK_ID: string;
599
+ PH_CONNECT_RENOWN_CHAIN_ID: number;
600
+ PH_CONFIG_PATH?: string | undefined;
601
+ PH_PACKAGES?: string | undefined;
602
+ PH_LOCAL_PACKAGE?: string | undefined;
603
+ PH_SENTRY_AUTH_TOKEN?: string | undefined;
604
+ PH_SENTRY_ORG?: string | undefined;
605
+ PH_SENTRY_PROJECT?: string | undefined;
606
+ PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
607
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
608
+ PH_CONNECT_CLI_VERSION?: string | undefined;
609
+ PH_CONNECT_ENABLED_EDITORS?: string | undefined;
610
+ PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
611
+ PH_CONNECT_GA_TRACKING_ID?: string | undefined;
612
+ PH_CONNECT_SENTRY_RELEASE?: string | undefined;
613
+ PH_CONNECT_SENTRY_DSN?: string | undefined;
614
+ }, {
615
+ PH_CONFIG_PATH?: string | undefined;
616
+ PH_PACKAGES?: string | undefined;
617
+ PH_LOCAL_PACKAGE?: string | undefined;
618
+ PH_DISABLE_LOCAL_PACKAGE?: boolean | "true" | "false" | undefined;
619
+ PH_SENTRY_AUTH_TOKEN?: string | undefined;
620
+ PH_SENTRY_ORG?: string | undefined;
621
+ PH_SENTRY_PROJECT?: string | undefined;
622
+ PH_CONNECT_VERSION?: string | undefined;
623
+ PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
624
+ PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
625
+ PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
626
+ PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
627
+ PH_CONNECT_ROUTER_BASENAME?: string | undefined;
628
+ PH_CONNECT_DEFAULT_DRIVES_URL?: string | undefined;
629
+ PH_CONNECT_DRIVES_PRESERVE_STRATEGY?: string | undefined;
630
+ PH_CONNECT_VERSION_CHECK_INTERVAL?: string | number | undefined;
631
+ PH_CONNECT_CLI_VERSION?: string | undefined;
632
+ PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE?: string | number | undefined;
633
+ PH_CONNECT_DISABLE_ADD_DRIVE?: boolean | "true" | "false" | undefined;
634
+ PH_CONNECT_SEARCH_BAR_ENABLED?: boolean | "true" | "false" | undefined;
635
+ PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS?: boolean | "true" | "false" | undefined;
636
+ PH_CONNECT_ENABLED_EDITORS?: string | undefined;
637
+ PH_CONNECT_DISABLED_EDITORS?: string | undefined;
638
+ PH_CONNECT_PUBLIC_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
639
+ PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
640
+ PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES?: boolean | "true" | "false" | undefined;
641
+ PH_CONNECT_CLOUD_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
642
+ PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
643
+ PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES?: boolean | "true" | "false" | undefined;
644
+ PH_CONNECT_LOCAL_DRIVES_ENABLED?: boolean | "true" | "false" | undefined;
645
+ PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
646
+ PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES?: boolean | "true" | "false" | undefined;
647
+ PH_CONNECT_ANALYTICS_DATABASE_NAME?: string | undefined;
648
+ PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED?: boolean | "true" | "false" | undefined;
649
+ PH_CONNECT_DIFF_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
650
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED?: boolean | "true" | "false" | undefined;
651
+ PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED?: boolean | "true" | "false" | undefined;
652
+ PH_CONNECT_EXTERNAL_PACKAGES_DISABLED?: boolean | "true" | "false" | undefined;
653
+ PH_CONNECT_GA_TRACKING_ID?: string | undefined;
654
+ PH_CONNECT_SENTRY_RELEASE?: string | undefined;
655
+ PH_CONNECT_SENTRY_DSN?: string | undefined;
656
+ PH_CONNECT_SENTRY_ENV?: string | undefined;
657
+ PH_CONNECT_SENTRY_TRACING_ENABLED?: boolean | "true" | "false" | undefined;
658
+ PH_CONNECT_RENOWN_URL?: string | undefined;
659
+ PH_CONNECT_RENOWN_NETWORK_ID?: string | undefined;
660
+ PH_CONNECT_RENOWN_CHAIN_ID?: string | number | undefined;
661
+ }>;
662
+ /**
663
+ * Inferred TypeScript types from schemas
664
+ */
665
+ export type ConnectBuildEnv = z.infer<typeof buildEnvSchema>;
666
+ export type ConnectRuntimeEnv = z.infer<typeof runtimeEnvSchema>;
667
+ export type ConnectEnv = z.infer<typeof connectEnvSchema>;
668
+ /**
669
+ * Options for loading environment variables
670
+ */
671
+ export interface LoadEnvOptions {
672
+ /**
673
+ * Environment variables from process.env (highest priority)
674
+ */
675
+ processEnv?: Record<string, string | undefined>;
676
+ /**
677
+ * Environment variables from options (medium priority)
678
+ */
679
+ optionsEnv?: Partial<ConnectEnv>;
680
+ /**
681
+ * Environment variables from .env file (lowest priority)
682
+ */
683
+ fileEnv?: Record<string, string | undefined>;
684
+ }
685
+ /**
686
+ * Loads and validates environment variables with priority:
687
+ * 1. process.env (highest)
688
+ * 2. options
689
+ * 3. fileEnv
690
+ * 4. defaults from schema (lowest)
691
+ *
692
+ * @param options - Environment sources in priority order
693
+ * @returns Validated and typed environment configuration
694
+ */
695
+ export declare function loadConnectEnv(options?: LoadEnvOptions): ConnectEnv;
696
+ /**
697
+ * Loads only runtime environment variables
698
+ *
699
+ * @param options - Environment sources in priority order
700
+ * @returns Validated runtime environment configuration
701
+ */
702
+ export declare function loadRuntimeEnv(options?: LoadEnvOptions): ConnectRuntimeEnv;
703
+ /**
704
+ * Loads only build-time environment variables
705
+ *
706
+ * @param options - Environment sources in priority order
707
+ * @returns Validated build environment configuration
708
+ */
709
+ export declare function loadBuildEnv(options?: LoadEnvOptions): ConnectBuildEnv;
710
+ /**
711
+ * Safely sets Connect environment variables with validation.
712
+ * Invalid values will log a warning and be skipped.
713
+ *
714
+ * @param values - Type-safe object with key-value pairs to set
715
+ *
716
+ * @example
717
+ * ```ts
718
+ * setConnectEnv({
719
+ * PH_CONNECT_LOG_LEVEL: "debug",
720
+ * PH_CONNECT_VERSION: "1.2.3",
721
+ * PH_CONNECT_STUDIO_MODE: true,
722
+ * });
723
+ * ```
724
+ */
725
+ export declare function setConnectEnv(values: Partial<ConnectEnv>): void;
726
+ export {};
727
+ //# sourceMappingURL=env-config.d.ts.map