ambient.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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 CLAUDE_CODE_EXECPATH: string;
  136. export const npm_config_noproxy: string;
  137. export const BROWSER: string;
  138. export const PATH: string;
  139. export const npm_config_node_gyp: string;
  140. export const DBUS_SESSION_BUS_ADDRESS: string;
  141. export const npm_config_global_prefix: string;
  142. export const KDE_APPLICATIONS_AS_SCOPE: string;
  143. export const NVM_BIN: string;
  144. export const MAIL: string;
  145. export const npm_node_execpath: string;
  146. export const LC_NUMERIC: string;
  147. export const OLDPWD: string;
  148. export const KONSOLE_DBUS_WINDOW: string;
  149. export const NODE_ENV: string;
  150. }
  151. /**
  152. * This module provides access to environment variables that are injected _statically_ into your bundle at build time and are _publicly_ accessible.
  153. *
  154. * | | Runtime | Build time |
  155. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  156. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  157. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  158. *
  159. * 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.
  160. *
  161. * **_Public_ access:**
  162. *
  163. * - This module _can_ be imported into client-side code
  164. * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
  165. *
  166. * For example, given the following build time environment:
  167. *
  168. * ```env
  169. * ENVIRONMENT=production
  170. * PUBLIC_BASE_URL=http://site.com
  171. * ```
  172. *
  173. * With the default `publicPrefix` and `privatePrefix`:
  174. *
  175. * ```ts
  176. * import { ENVIRONMENT, PUBLIC_BASE_URL } from '$env/static/public';
  177. *
  178. * console.log(ENVIRONMENT); // => throws error during build
  179. * console.log(PUBLIC_BASE_URL); // => "http://site.com"
  180. * ```
  181. *
  182. * 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.
  183. */
  184. declare module '$env/static/public' {
  185. }
  186. /**
  187. * This module provides access to environment variables set _dynamically_ at runtime and that are limited to _private_ access.
  188. *
  189. * | | Runtime | Build time |
  190. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  191. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  192. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  193. *
  194. * 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`.
  195. *
  196. * **_Private_ access:**
  197. *
  198. * - This module cannot be imported into client-side code
  199. * - 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)
  200. *
  201. * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
  202. *
  203. * > [!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:
  204. * >
  205. * > ```env
  206. * > MY_FEATURE_FLAG=
  207. * > ```
  208. * >
  209. * > You can override `.env` values from the command line like so:
  210. * >
  211. * > ```sh
  212. * > MY_FEATURE_FLAG="enabled" npm run dev
  213. * > ```
  214. *
  215. * For example, given the following runtime environment:
  216. *
  217. * ```env
  218. * ENVIRONMENT=production
  219. * PUBLIC_BASE_URL=http://site.com
  220. * ```
  221. *
  222. * With the default `publicPrefix` and `privatePrefix`:
  223. *
  224. * ```ts
  225. * import { env } from '$env/dynamic/private';
  226. *
  227. * console.log(env.ENVIRONMENT); // => "production"
  228. * console.log(env.PUBLIC_BASE_URL); // => undefined
  229. * ```
  230. */
  231. declare module '$env/dynamic/private' {
  232. export const env: {
  233. SHELL: string;
  234. npm_command: string;
  235. SESSION_MANAGER: string;
  236. COREPACK_ENABLE_AUTO_PIN: string;
  237. WINDOWID: string;
  238. npm_config_userconfig: string;
  239. COLORTERM: string;
  240. XDG_CONFIG_DIRS: string;
  241. npm_config_cache: string;
  242. XDG_SESSION_PATH: string;
  243. NVM_INC: string;
  244. XDG_MENU_PREFIX: string;
  245. ICEAUTHORITY: string;
  246. LANGUAGE: string;
  247. NODE: string;
  248. LC_ADDRESS: string;
  249. LC_NAME: string;
  250. SHELL_SESSION_ID: string;
  251. MEMORY_PRESSURE_WRITE: string;
  252. COLOR: string;
  253. npm_config_local_prefix: string;
  254. DESKTOP_SESSION: string;
  255. LC_MONETARY: string;
  256. GTK_RC_FILES: string;
  257. npm_config_globalconfig: string;
  258. EDITOR: string;
  259. XDG_SEAT: string;
  260. PWD: string;
  261. XDG_SESSION_DESKTOP: string;
  262. LOGNAME: string;
  263. XDG_SESSION_TYPE: string;
  264. npm_config_init_module: string;
  265. SYSTEMD_EXEC_PID: string;
  266. CLAUDE_CODE_DISABLE_TELEMETRY: string;
  267. _: string;
  268. XAUTHORITY: string;
  269. NoDefaultCurrentDirectoryInExePath: string;
  270. CLAUDECODE: string;
  271. MOTD_SHOWN: string;
  272. GTK2_RC_FILES: string;
  273. HOME: string;
  274. LC_PAPER: string;
  275. LANG: string;
  276. _JAVA_AWT_WM_NONREPARENTING: string;
  277. XDG_CURRENT_DESKTOP: string;
  278. KONSOLE_DBUS_SERVICE: string;
  279. npm_package_version: string;
  280. MEMORY_PRESSURE_WATCH: string;
  281. WAYLAND_DISPLAY: string;
  282. KONSOLE_DBUS_SESSION: string;
  283. PROFILEHOME: string;
  284. CLAUDE_CONFIG_DIR: string;
  285. XDG_SEAT_PATH: string;
  286. INVOCATION_ID: string;
  287. KONSOLE_VERSION: string;
  288. MANAGERPID: string;
  289. INIT_CWD: string;
  290. KDE_SESSION_UID: string;
  291. npm_lifecycle_script: string;
  292. NVM_DIR: string;
  293. XKB_DEFAULT_LAYOUT: string;
  294. npm_config_npm_version: string;
  295. XDG_SESSION_CLASS: string;
  296. TERM: string;
  297. LC_IDENTIFICATION: string;
  298. npm_package_name: string;
  299. KONSOLE_DBUS_ACTIVATION_COOKIE: string;
  300. npm_config_prefix: string;
  301. USER: string;
  302. CUDA_PATH: string;
  303. COLORFGBG: string;
  304. QT_WAYLAND_RECONNECT: string;
  305. KDE_SESSION_VERSION: string;
  306. PAM_KWALLET5_LOGIN: string;
  307. DISPLAY: string;
  308. npm_lifecycle_event: string;
  309. SHLVL: string;
  310. NVM_CD_FLAGS: string;
  311. GIT_EDITOR: string;
  312. LC_TELEPHONE: string;
  313. LC_MEASUREMENT: string;
  314. XDG_VTNR: string;
  315. XDG_SESSION_ID: string;
  316. MANAGERPIDFDID: string;
  317. npm_config_user_agent: string;
  318. OPENCV_OPENCL_DEVICE: string;
  319. ROCM_PATH: string;
  320. OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: string;
  321. npm_execpath: string;
  322. XDG_RUNTIME_DIR: string;
  323. CLAUDE_CODE_ENTRYPOINT: string;
  324. NVCC_CCBIN: string;
  325. DEBUGINFOD_URLS: string;
  326. npm_package_json: string;
  327. LC_TIME: string;
  328. FLAGS_use_cuda_managed_memory: string;
  329. JOURNAL_STREAM: string;
  330. KDE_FULL_SESSION: string;
  331. CLAUDE_CODE_EXECPATH: string;
  332. npm_config_noproxy: string;
  333. BROWSER: string;
  334. PATH: string;
  335. npm_config_node_gyp: string;
  336. DBUS_SESSION_BUS_ADDRESS: string;
  337. npm_config_global_prefix: string;
  338. KDE_APPLICATIONS_AS_SCOPE: string;
  339. NVM_BIN: string;
  340. MAIL: string;
  341. npm_node_execpath: string;
  342. LC_NUMERIC: string;
  343. OLDPWD: string;
  344. KONSOLE_DBUS_WINDOW: string;
  345. NODE_ENV: string;
  346. [key: `PUBLIC_${string}`]: undefined;
  347. [key: `${string}`]: string | undefined;
  348. }
  349. }
  350. /**
  351. * This module provides access to environment variables set _dynamically_ at runtime and that are _publicly_ accessible.
  352. *
  353. * | | Runtime | Build time |
  354. * | ------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
  355. * | Private | [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) | [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) |
  356. * | Public | [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) | [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) |
  357. *
  358. * 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`.
  359. *
  360. * **_Public_ access:**
  361. *
  362. * - This module _can_ be imported into client-side code
  363. * - **Only** variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`) are included
  364. *
  365. * > [!NOTE] In `dev`, `$env/dynamic` includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
  366. *
  367. * > [!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:
  368. * >
  369. * > ```env
  370. * > MY_FEATURE_FLAG=
  371. * > ```
  372. * >
  373. * > You can override `.env` values from the command line like so:
  374. * >
  375. * > ```sh
  376. * > MY_FEATURE_FLAG="enabled" npm run dev
  377. * > ```
  378. *
  379. * For example, given the following runtime environment:
  380. *
  381. * ```env
  382. * ENVIRONMENT=production
  383. * PUBLIC_BASE_URL=http://example.com
  384. * ```
  385. *
  386. * With the default `publicPrefix` and `privatePrefix`:
  387. *
  388. * ```ts
  389. * import { env } from '$env/dynamic/public';
  390. * console.log(env.ENVIRONMENT); // => undefined, not public
  391. * console.log(env.PUBLIC_BASE_URL); // => "http://example.com"
  392. * ```
  393. *
  394. * ```
  395. *
  396. * ```
  397. */
  398. declare module '$env/dynamic/public' {
  399. export const env: {
  400. [key: `PUBLIC_${string}`]: string | undefined;
  401. }
  402. }