ambient.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. // this file is generated — do not edit it
  2. /// <reference types="@sveltejs/kit" />
  3. /**
  4. * This module provides access to environment variables that are injected _statically_ into your bundle at build time and are limited to _private_ access.
  5. *
  6. * | | Runtime | Build time |
  7. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  8. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  9. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  10. *
  11. * Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
  12. *
  13. * **_Private_ access:**
  14. *
  15. * - This module cannot be imported into client-side code
  16. * - This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
  17. *
  18. * For example, given the following build time environment:
  19. *
  20. * ```env
  21. * ENVIRONMENT=production
  22. * PUBLIC_BASE_URL=http://site.com
  23. * ```
  24. *
  25. * With the default `publicPrefix` and `privatePrefix`:
  26. *
  27. * ```ts
  28. * import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/private';
  29. *
  30. * console.log(ENVIRONMENT); // => "production"
  31. * console.log(PUBLIC_BASE_URL); // => throws error during build
  32. * ```
  33. *
  34. * The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
  35. */
  36. declare module '$env/static/private' {
  37. export const SHELL: string;
  38. export const npm_command: string;
  39. export const SESSION_MANAGER: string;
  40. export const COREPACK_ENABLE_AUTO_PIN: string;
  41. export const WINDOWID: string;
  42. export const npm_config_userconfig: string;
  43. export const COLORTERM: string;
  44. export const XDG_CONFIG_DIRS: string;
  45. export const npm_config_cache: string;
  46. export const XDG_SESSION_PATH: string;
  47. export const NVM_INC: string;
  48. export const XDG_MENU_PREFIX: string;
  49. export const ICEAUTHORITY: string;
  50. export const LANGUAGE: string;
  51. export const NODE: string;
  52. export const LC_ADDRESS: string;
  53. export const LC_NAME: string;
  54. export const SHELL_SESSION_ID: string;
  55. export const MEMORY_PRESSURE_WRITE: string;
  56. export const COLOR: string;
  57. export const npm_config_local_prefix: string;
  58. export const DESKTOP_SESSION: string;
  59. export const LC_MONETARY: string;
  60. export const GTK_RC_FILES: string;
  61. export const npm_config_globalconfig: string;
  62. export const EDITOR: string;
  63. export const XDG_SEAT: string;
  64. export const PWD: string;
  65. export const XDG_SESSION_DESKTOP: string;
  66. export const LOGNAME: string;
  67. export const XDG_SESSION_TYPE: string;
  68. export const npm_config_init_module: string;
  69. export const SYSTEMD_EXEC_PID: string;
  70. export const CLAUDE_CODE_DISABLE_TELEMETRY: string;
  71. export const _: string;
  72. export const XAUTHORITY: string;
  73. export const NoDefaultCurrentDirectoryInExePath: string;
  74. export const CLAUDECODE: string;
  75. export const MOTD_SHOWN: string;
  76. export const GTK2_RC_FILES: string;
  77. export const HOME: string;
  78. export const LC_PAPER: string;
  79. export const LANG: string;
  80. export const _JAVA_AWT_WM_NONREPARENTING: string;
  81. export const XDG_CURRENT_DESKTOP: string;
  82. export const KONSOLE_DBUS_SERVICE: string;
  83. export const npm_package_version: string;
  84. export const MEMORY_PRESSURE_WATCH: string;
  85. export const WAYLAND_DISPLAY: string;
  86. export const KONSOLE_DBUS_SESSION: string;
  87. export const PROFILEHOME: string;
  88. export const CLAUDE_CONFIG_DIR: string;
  89. export const XDG_SEAT_PATH: string;
  90. export const INVOCATION_ID: string;
  91. export const KONSOLE_VERSION: string;
  92. export const MANAGERPID: string;
  93. export const INIT_CWD: string;
  94. export const KDE_SESSION_UID: string;
  95. export const npm_lifecycle_script: string;
  96. export const NVM_DIR: string;
  97. export const XKB_DEFAULT_LAYOUT: string;
  98. export const npm_config_npm_version: string;
  99. export const XDG_SESSION_CLASS: string;
  100. export const TERM: string;
  101. export const LC_IDENTIFICATION: string;
  102. export const npm_package_name: string;
  103. export const KONSOLE_DBUS_ACTIVATION_COOKIE: string;
  104. export const npm_config_prefix: string;
  105. export const USER: string;
  106. export const CUDA_PATH: string;
  107. export const COLORFGBG: string;
  108. export const QT_WAYLAND_RECONNECT: string;
  109. export const KDE_SESSION_VERSION: string;
  110. export const PAM_KWALLET5_LOGIN: string;
  111. export const DISPLAY: string;
  112. export const npm_lifecycle_event: string;
  113. export const SHLVL: string;
  114. export const NVM_CD_FLAGS: string;
  115. export const GIT_EDITOR: string;
  116. export const LC_TELEPHONE: string;
  117. export const LC_MEASUREMENT: string;
  118. export const XDG_VTNR: string;
  119. export const XDG_SESSION_ID: string;
  120. export const MANAGERPIDFDID: string;
  121. export const npm_config_user_agent: string;
  122. export const OPENCV_OPENCL_DEVICE: string;
  123. export const ROCM_PATH: string;
  124. export const OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: string;
  125. export const npm_execpath: string;
  126. export const XDG_RUNTIME_DIR: string;
  127. export const CLAUDE_CODE_ENTRYPOINT: string;
  128. export const NVCC_CCBIN: string;
  129. export const DEBUGINFOD_URLS: string;
  130. export const npm_package_json: string;
  131. export const LC_TIME: string;
  132. export const FLAGS_use_cuda_managed_memory: string;
  133. export const JOURNAL_STREAM: string;
  134. export const KDE_FULL_SESSION: string;
  135. export const npm_config_noproxy: string;
  136. export const BROWSER: string;
  137. export const PATH: string;
  138. export const npm_config_node_gyp: string;
  139. export const DBUS_SESSION_BUS_ADDRESS: string;
  140. export const npm_config_global_prefix: string;
  141. export const KDE_APPLICATIONS_AS_SCOPE: string;
  142. export const NVM_BIN: string;
  143. export const MAIL: string;
  144. export const npm_node_execpath: string;
  145. export const LC_NUMERIC: string;
  146. export const OLDPWD: string;
  147. export const KONSOLE_DBUS_WINDOW: string;
  148. export const NODE_ENV: string;
  149. }
  150. /**
  151. * This module provides access to environment variables that are injected _statically_ into your bundle at build time and are _publicly_ accessible.
  152. *
  153. * | | Runtime | Build time |
  154. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  155. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  156. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  157. *
  158. * Static environment variables are [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env` at build time and then statically injected into your bundle at build time, enabling optimisations like dead code elimination.
  159. *
  160. * **_Public_ access:**
  161. *
  162. * - This module _can_ be imported into client-side code
  163. * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
  164. *
  165. * For example, given the following build time environment:
  166. *
  167. * ```env
  168. * ENVIRONMENT=production
  169. * PUBLIC_BASE_URL=http://site.com
  170. * ```
  171. *
  172. * With the default `publicPrefix` and `privatePrefix`:
  173. *
  174. * ```ts
  175. * import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/public';
  176. *
  177. * console.log(ENVIRONMENT); // => throws error during build
  178. * console.log(PUBLIC_BASE_URL); // => "http://site.com"
  179. * ```
  180. *
  181. * The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values.
  182. */
  183. declare module '$env/static/public' {
  184. }
  185. /**
  186. * This module provides access to environment variables set _dynamically_ at runtime and that are limited to _private_ access.
  187. *
  188. * | | Runtime | Build time |
  189. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  190. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  191. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  192. *
  193. * Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
  194. *
  195. * **_Private_ access:**
  196. *
  197. * - This module cannot be imported into client-side code
  198. * - This module includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured)
  199. *
  200. * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
  201. *
  202. * > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
  203. * >
  204. * > ```env
  205. * > MY_FEATURE_FLAG=
  206. * > ```
  207. * >
  208. * > You can override `.env` values from the command line like so:
  209. * >
  210. * > ```sh
  211. * > MY_FEATURE_FLAG="enabled" npm run dev
  212. * > ```
  213. *
  214. * For example, given the following runtime environment:
  215. *
  216. * ```env
  217. * ENVIRONMENT=production
  218. * PUBLIC_BASE_URL=http://site.com
  219. * ```
  220. *
  221. * With the default `publicPrefix` and `privatePrefix`:
  222. *
  223. * ```ts
  224. * import { env } from '$env/dynamic/private';
  225. *
  226. * console.log(env.ENVIRONMENT); // => "production"
  227. * console.log(env.PUBLIC_BASE_URL); // => undefined
  228. * ```
  229. */
  230. declare module '$env/dynamic/private' {
  231. export const env: {
  232. SHELL: string;
  233. npm_command: string;
  234. SESSION_MANAGER: string;
  235. COREPACK_ENABLE_AUTO_PIN: string;
  236. WINDOWID: string;
  237. npm_config_userconfig: string;
  238. COLORTERM: string;
  239. XDG_CONFIG_DIRS: string;
  240. npm_config_cache: string;
  241. XDG_SESSION_PATH: string;
  242. NVM_INC: string;
  243. XDG_MENU_PREFIX: string;
  244. ICEAUTHORITY: string;
  245. LANGUAGE: string;
  246. NODE: string;
  247. LC_ADDRESS: string;
  248. LC_NAME: string;
  249. SHELL_SESSION_ID: string;
  250. MEMORY_PRESSURE_WRITE: string;
  251. COLOR: string;
  252. npm_config_local_prefix: string;
  253. DESKTOP_SESSION: string;
  254. LC_MONETARY: string;
  255. GTK_RC_FILES: string;
  256. npm_config_globalconfig: string;
  257. EDITOR: string;
  258. XDG_SEAT: string;
  259. PWD: string;
  260. XDG_SESSION_DESKTOP: string;
  261. LOGNAME: string;
  262. XDG_SESSION_TYPE: string;
  263. npm_config_init_module: string;
  264. SYSTEMD_EXEC_PID: string;
  265. CLAUDE_CODE_DISABLE_TELEMETRY: string;
  266. _: string;
  267. XAUTHORITY: string;
  268. NoDefaultCurrentDirectoryInExePath: string;
  269. CLAUDECODE: string;
  270. MOTD_SHOWN: string;
  271. GTK2_RC_FILES: string;
  272. HOME: string;
  273. LC_PAPER: string;
  274. LANG: string;
  275. _JAVA_AWT_WM_NONREPARENTING: string;
  276. XDG_CURRENT_DESKTOP: string;
  277. KONSOLE_DBUS_SERVICE: string;
  278. npm_package_version: string;
  279. MEMORY_PRESSURE_WATCH: string;
  280. WAYLAND_DISPLAY: string;
  281. KONSOLE_DBUS_SESSION: string;
  282. PROFILEHOME: string;
  283. CLAUDE_CONFIG_DIR: string;
  284. XDG_SEAT_PATH: string;
  285. INVOCATION_ID: string;
  286. KONSOLE_VERSION: string;
  287. MANAGERPID: string;
  288. INIT_CWD: string;
  289. KDE_SESSION_UID: string;
  290. npm_lifecycle_script: string;
  291. NVM_DIR: string;
  292. XKB_DEFAULT_LAYOUT: string;
  293. npm_config_npm_version: string;
  294. XDG_SESSION_CLASS: string;
  295. TERM: string;
  296. LC_IDENTIFICATION: string;
  297. npm_package_name: string;
  298. KONSOLE_DBUS_ACTIVATION_COOKIE: string;
  299. npm_config_prefix: string;
  300. USER: string;
  301. CUDA_PATH: string;
  302. COLORFGBG: string;
  303. QT_WAYLAND_RECONNECT: string;
  304. KDE_SESSION_VERSION: string;
  305. PAM_KWALLET5_LOGIN: string;
  306. DISPLAY: string;
  307. npm_lifecycle_event: string;
  308. SHLVL: string;
  309. NVM_CD_FLAGS: string;
  310. GIT_EDITOR: string;
  311. LC_TELEPHONE: string;
  312. LC_MEASUREMENT: string;
  313. XDG_VTNR: string;
  314. XDG_SESSION_ID: string;
  315. MANAGERPIDFDID: string;
  316. npm_config_user_agent: string;
  317. OPENCV_OPENCL_DEVICE: string;
  318. ROCM_PATH: string;
  319. OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: string;
  320. npm_execpath: string;
  321. XDG_RUNTIME_DIR: string;
  322. CLAUDE_CODE_ENTRYPOINT: string;
  323. NVCC_CCBIN: string;
  324. DEBUGINFOD_URLS: string;
  325. npm_package_json: string;
  326. LC_TIME: string;
  327. FLAGS_use_cuda_managed_memory: string;
  328. JOURNAL_STREAM: string;
  329. KDE_FULL_SESSION: string;
  330. npm_config_noproxy: string;
  331. BROWSER: string;
  332. PATH: string;
  333. npm_config_node_gyp: string;
  334. DBUS_SESSION_BUS_ADDRESS: string;
  335. npm_config_global_prefix: string;
  336. KDE_APPLICATIONS_AS_SCOPE: string;
  337. NVM_BIN: string;
  338. MAIL: string;
  339. npm_node_execpath: string;
  340. LC_NUMERIC: string;
  341. OLDPWD: string;
  342. KONSOLE_DBUS_WINDOW: string;
  343. NODE_ENV: string;
  344. [key: `PUBLIC_${string}`]: undefined;
  345. [key: `${string}`]: string | undefined;
  346. }
  347. }
  348. /**
  349. * This module provides access to environment variables set _dynamically_ at runtime and that are _publicly_ accessible.
  350. *
  351. * | | Runtime | Build time |
  352. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  353. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  354. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  355. *
  356. * Dynamic environment variables are defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`.
  357. *
  358. * **_Public_ access:**
  359. *
  360. * - This module _can_ be imported into client-side code
  361. * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
  362. *
  363. * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
  364. *
  365. * > [!NOTE] To get correct types, environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
  366. * >
  367. * > ```env
  368. * > MY_FEATURE_FLAG=
  369. * > ```
  370. * >
  371. * > You can override `.env` values from the command line like so:
  372. * >
  373. * > ```sh
  374. * > MY_FEATURE_FLAG="enabled" npm run dev
  375. * > ```
  376. *
  377. * For example, given the following runtime environment:
  378. *
  379. * ```env
  380. * ENVIRONMENT=production
  381. * PUBLIC_BASE_URL=http://example.com
  382. * ```
  383. *
  384. * With the default `publicPrefix` and `privatePrefix`:
  385. *
  386. * ```ts
  387. * import { env } from '$env/dynamic/public';
  388. * console.log(env.ENVIRONMENT); // => undefined, not public
  389. * console.log(env.PUBLIC_BASE_URL); // => "http://example.com"
  390. * ```
  391. *
  392. * ```
  393. *
  394. * ```
  395. */
  396. declare module '$env/dynamic/public' {
  397. export const env: {
  398. [key: `PUBLIC_${string}`]: string | undefined;
  399. }
  400. }