|
| 1 | + |
| 2 | +// this file is generated — do not edit it |
| 3 | + |
| 4 | + |
| 5 | +/// <reference types="@sveltejs/kit" /> |
| 6 | + |
| 7 | +/** |
| 8 | + * Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into public-facing code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env). |
| 9 | + * |
| 10 | + * _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination. |
| 11 | + * |
| 12 | + * ```ts |
| 13 | + * import { API_KEY } from '$env/static/private'; |
| 14 | + * ``` |
| 15 | + * |
| 16 | + * Note that all 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: |
| 17 | + * |
| 18 | + * ``` |
| 19 | + * MY_FEATURE_FLAG="" |
| 20 | + * ``` |
| 21 | + * |
| 22 | + * You can override `.env` values from the command line like so: |
| 23 | + * |
| 24 | + * ```bash |
| 25 | + * MY_FEATURE_FLAG="enabled" npm run dev |
| 26 | + * ``` |
| 27 | + */ |
| 28 | +declare module '$env/static/private' { |
| 29 | + export const GREP_COLOR: string; |
| 30 | + export const MANPATH: string; |
| 31 | + export const TERM_PROGRAM: string; |
| 32 | + export const NODE: string; |
| 33 | + export const INIT_CWD: string; |
| 34 | + export const TERM: string; |
| 35 | + export const SHELL: string; |
| 36 | + export const ASDF_DIR: string; |
| 37 | + export const TMPDIR: string; |
| 38 | + export const HOMEBREW_REPOSITORY: string; |
| 39 | + export const CPPFLAGS: string; |
| 40 | + export const npm_config_metrics_registry: string; |
| 41 | + export const npm_config_global_prefix: string; |
| 42 | + export const VAULT_ADDR: string; |
| 43 | + export const TERM_PROGRAM_VERSION: string; |
| 44 | + export const WINDOWID: string; |
| 45 | + export const COLOR: string; |
| 46 | + export const npm_config_noproxy: string; |
| 47 | + export const ZSH: string; |
| 48 | + export const npm_config_local_prefix: string; |
| 49 | + export const CDPATH: string; |
| 50 | + export const USER: string; |
| 51 | + export const LS_COLORS: string; |
| 52 | + export const COMMAND_MODE: string; |
| 53 | + export const npm_config_globalconfig: string; |
| 54 | + export const SSH_AUTH_SOCK: string; |
| 55 | + export const __CF_USER_TEXT_ENCODING: string; |
| 56 | + export const npm_execpath: string; |
| 57 | + export const PAGER: string; |
| 58 | + export const TMUX: string; |
| 59 | + export const LSCOLORS: string; |
| 60 | + export const PATH: string; |
| 61 | + export const _: string; |
| 62 | + export const LaunchInstanceID: string; |
| 63 | + export const NPM_CONFIG_PREFIX: string; |
| 64 | + export const npm_config_engine_strict: string; |
| 65 | + export const npm_package_json: string; |
| 66 | + export const __CFBundleIdentifier: string; |
| 67 | + export const npm_config_init_module: string; |
| 68 | + export const npm_config_userconfig: string; |
| 69 | + export const PWD: string; |
| 70 | + export const npm_command: string; |
| 71 | + export const KITTY_PID: string; |
| 72 | + export const EDITOR: string; |
| 73 | + export const npm_lifecycle_event: string; |
| 74 | + export const LANG: string; |
| 75 | + export const npm_package_name: string; |
| 76 | + export const XPC_FLAGS: string; |
| 77 | + export const TMUX_PANE: string; |
| 78 | + export const npm_config_node_gyp: string; |
| 79 | + export const XPC_SERVICE_NAME: string; |
| 80 | + export const npm_package_version: string; |
| 81 | + export const GPG_TTY: string; |
| 82 | + export const USE_GKE_GCLOUD_AUTH_PLUGIN: string; |
| 83 | + export const SHLVL: string; |
| 84 | + export const HOME: string; |
| 85 | + export const TERMINFO: string; |
| 86 | + export const HOMEBREW_PREFIX: string; |
| 87 | + export const LOGNAME: string; |
| 88 | + export const LESS: string; |
| 89 | + export const npm_config_cache: string; |
| 90 | + export const npm_lifecycle_script: string; |
| 91 | + export const KITTY_WINDOW_ID: string; |
| 92 | + export const KITTY_INSTALLATION_DIR: string; |
| 93 | + export const npm_config_user_agent: string; |
| 94 | + export const INFOPATH: string; |
| 95 | + export const HOMEBREW_CELLAR: string; |
| 96 | + export const SECURITYSESSIONID: string; |
| 97 | + export const COLORTERM: string; |
| 98 | + export const npm_node_execpath: string; |
| 99 | + export const NODE_ENV: string; |
| 100 | +} |
| 101 | + |
| 102 | +/** |
| 103 | + * Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. |
| 104 | + * |
| 105 | + * Values are replaced statically at build time. |
| 106 | + * |
| 107 | + * ```ts |
| 108 | + * import { PUBLIC_BASE_URL } from '$env/static/public'; |
| 109 | + * ``` |
| 110 | + */ |
| 111 | +declare module '$env/static/public' { |
| 112 | + |
| 113 | +} |
| 114 | + |
| 115 | +/** |
| 116 | + * This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env). |
| 117 | + * |
| 118 | + * This module cannot be imported into public-facing code. |
| 119 | + * |
| 120 | + * ```ts |
| 121 | + * import { env } from '$env/dynamic/private'; |
| 122 | + * console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE); |
| 123 | + * ``` |
| 124 | + * |
| 125 | + * > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter. |
| 126 | + */ |
| 127 | +declare module '$env/dynamic/private' { |
| 128 | + export const env: { |
| 129 | + GREP_COLOR: string; |
| 130 | + MANPATH: string; |
| 131 | + TERM_PROGRAM: string; |
| 132 | + NODE: string; |
| 133 | + INIT_CWD: string; |
| 134 | + TERM: string; |
| 135 | + SHELL: string; |
| 136 | + ASDF_DIR: string; |
| 137 | + TMPDIR: string; |
| 138 | + HOMEBREW_REPOSITORY: string; |
| 139 | + CPPFLAGS: string; |
| 140 | + npm_config_metrics_registry: string; |
| 141 | + npm_config_global_prefix: string; |
| 142 | + VAULT_ADDR: string; |
| 143 | + TERM_PROGRAM_VERSION: string; |
| 144 | + WINDOWID: string; |
| 145 | + COLOR: string; |
| 146 | + npm_config_noproxy: string; |
| 147 | + ZSH: string; |
| 148 | + npm_config_local_prefix: string; |
| 149 | + CDPATH: string; |
| 150 | + USER: string; |
| 151 | + LS_COLORS: string; |
| 152 | + COMMAND_MODE: string; |
| 153 | + npm_config_globalconfig: string; |
| 154 | + SSH_AUTH_SOCK: string; |
| 155 | + __CF_USER_TEXT_ENCODING: string; |
| 156 | + npm_execpath: string; |
| 157 | + PAGER: string; |
| 158 | + TMUX: string; |
| 159 | + LSCOLORS: string; |
| 160 | + PATH: string; |
| 161 | + _: string; |
| 162 | + LaunchInstanceID: string; |
| 163 | + NPM_CONFIG_PREFIX: string; |
| 164 | + npm_config_engine_strict: string; |
| 165 | + npm_package_json: string; |
| 166 | + __CFBundleIdentifier: string; |
| 167 | + npm_config_init_module: string; |
| 168 | + npm_config_userconfig: string; |
| 169 | + PWD: string; |
| 170 | + npm_command: string; |
| 171 | + KITTY_PID: string; |
| 172 | + EDITOR: string; |
| 173 | + npm_lifecycle_event: string; |
| 174 | + LANG: string; |
| 175 | + npm_package_name: string; |
| 176 | + XPC_FLAGS: string; |
| 177 | + TMUX_PANE: string; |
| 178 | + npm_config_node_gyp: string; |
| 179 | + XPC_SERVICE_NAME: string; |
| 180 | + npm_package_version: string; |
| 181 | + GPG_TTY: string; |
| 182 | + USE_GKE_GCLOUD_AUTH_PLUGIN: string; |
| 183 | + SHLVL: string; |
| 184 | + HOME: string; |
| 185 | + TERMINFO: string; |
| 186 | + HOMEBREW_PREFIX: string; |
| 187 | + LOGNAME: string; |
| 188 | + LESS: string; |
| 189 | + npm_config_cache: string; |
| 190 | + npm_lifecycle_script: string; |
| 191 | + KITTY_WINDOW_ID: string; |
| 192 | + KITTY_INSTALLATION_DIR: string; |
| 193 | + npm_config_user_agent: string; |
| 194 | + INFOPATH: string; |
| 195 | + HOMEBREW_CELLAR: string; |
| 196 | + SECURITYSESSIONID: string; |
| 197 | + COLORTERM: string; |
| 198 | + npm_node_execpath: string; |
| 199 | + NODE_ENV: string; |
| 200 | + [key: string]: string | undefined; |
| 201 | + } |
| 202 | +} |
| 203 | + |
| 204 | +/** |
| 205 | + * Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. |
| 206 | + * |
| 207 | + * Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead. |
| 208 | + * |
| 209 | + * ```ts |
| 210 | + * import { env } from '$env/dynamic/public'; |
| 211 | + * console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE); |
| 212 | + * ``` |
| 213 | + */ |
| 214 | +declare module '$env/dynamic/public' { |
| 215 | + export const env: { |
| 216 | + [key: string]: string | undefined; |
| 217 | + } |
| 218 | +} |
0 commit comments