import { F as EnvTypedVariableOptions, L as EnvVariableDeclaration, M as EnvSource, P as EnvSourceResolver, R as EnvVariableOptions, j as EnvSchemaModuleReference } from "./bridge-Cs9YfQWk.js"; //#region src/core/declarations.d.ts type EnvListItem = boolean | number | string; interface StandardSchemaLike { "~standard": { validate: (value: unknown) => unknown; }; } interface EnvNamespace { (options?: EnvVariableOptions): EnvVariableDeclaration; /** Parse `true`, `false`, `1`, or `0` into a boolean. */ boolean: (options?: EnvTypedVariableOptions) => EnvVariableDeclaration; buildTimestamp: () => EnvSource; custom: (label: string, resolver: EnvSourceResolver) => EnvSource; /** Accept only the listed strings. The values are public metadata, so an enum cannot be secret. */ enum: (values: TValues, options?: EnvTypedVariableOptions & { secret?: never; }) => EnvVariableDeclaration; /** The current branch: `GIT_BRANCH`, then `GITHUB_HEAD_REF`, then `GITHUB_REF_NAME` on a GitHub branch ref, then local Git. */ gitBranch: () => EnvSource; /** The current commit SHA: `GIT_SHA`, then `GITHUB_SHA`, then local Git. `short` keeps 7 characters of a CI value. */ gitCommit: (options?: { short?: boolean; }) => EnvSource; /** The current tag, or `undefined`: `GIT_TAG`, then `GITHUB_REF_NAME` on a GitHub tag ref, then local Git. */ gitTag: () => EnvSource; /** * Parse a JSON value. In `env.server`, validate it with `env.json(env.schemaFrom(module, exportName))`. * With `mode: "build"`, pass the Standard Schema itself. Without a schema, the value is `unknown`. */ json: { (options?: EnvTypedVariableOptions): EnvVariableDeclaration; (schema: EnvSchemaModuleReference | StandardSchemaLike, options?: EnvTypedVariableOptions): EnvVariableDeclaration; }; /** * Parse a list separated by commas or line breaks. Items are trimmed and empty items are dropped. Pass `env.number()`, `env.boolean()`, * or `env.enum()` to parse each item, for example `env.list(env.number())`. */ list: { (options?: EnvTypedVariableOptions): EnvVariableDeclaration; (item: EnvVariableDeclaration, options?: EnvTypedVariableOptions): EnvVariableDeclaration; }; /** Parse a finite number. */ number: (options?: EnvTypedVariableOptions) => EnvVariableDeclaration; packageJson: (path: string) => EnvSource; provider: (provider: string, key: string) => EnvSource; /** * Validate a Server Env value with a Standard Schema exported by a module, for example `env.schemaFrom("./server/env.schema.ts", "apiUrl")`. * The server build imports the module, so refinements and transforms run on every resolution. */ schemaFrom: (module: string, exportName?: string) => EnvSchemaModuleReference; source: (name: string | string[], options?: { canonical?: boolean; }) => EnvSource; } declare const env: EnvNamespace; //#endregion export { env as t };