import { CreateEnv, CreateSchemaOptions, DefaultCombinedSchema, ServerClientOptions, StandardSchemaDictionary, StandardSchemaV1, StrictOptions } from "@t3-oss/env-core"; //#region src/index.d.ts declare const CLIENT_PREFIX = "NEXT_PUBLIC_"; type ClientPrefix = typeof CLIENT_PREFIX; type Options, TShared extends StandardSchemaDictionary, TExtends extends Array>, TFinalSchema extends StandardSchemaV1<{}, {}>> = Omit & ServerClientOptions & CreateSchemaOptions, "runtimeEnvStrict" | "runtimeEnv" | "clientPrefix"> & ({ /** * Manual destruction of `process.env`. Required for Next.js < 13.4.4. */ runtimeEnv: StrictOptions["runtimeEnvStrict"]; experimental__runtimeEnv?: never; } | { runtimeEnv?: never; /** * Can be used for Next.js ^13.4.4 since they stopped static analysis of server side `process.env`. * Only client side `process.env` is statically analyzed and needs to be manually destructured. */ experimental__runtimeEnv: Record<{ [TKey in keyof TClient]: TKey extends `${ClientPrefix}${string}` ? TKey : never }[keyof TClient] | { [TKey in keyof TShared]: TKey extends string ? TKey : never }[keyof TShared], string | boolean | number | undefined>; }); /** * Create a new environment variable schema. */ declare function createEnv, TClient extends Record<`${ClientPrefix}${string}`, StandardSchemaV1> = NonNullable, TShared extends StandardSchemaDictionary = NonNullable, const TExtends extends Array> = [], TFinalSchema extends StandardSchemaV1<{}, {}> = DefaultCombinedSchema>(opts: Options): CreateEnv; //#endregion export { createEnv }; //# sourceMappingURL=index.d.ts.map