import type { StandardSchemaV1 } from "./standard-schema.js"; /** * Validates the current process environment variables using a StandardSchema. * * This function executes the schema validation against `process.env` * and ensures all required environment variables follow the expected shape. * @example * // "env.ts" — Using Zod * import { z } from "zod"; * import { validateEnv } from "@constatic/base"; * * export const env = await validateEnv(z.object({ * BOT_TOKEN: z.string("BOT_TOKEN is required").min(1) * }).passthrough()); * * @example * // "env.ts" — Using ArkType * import { type } from "arktype"; * import { validateEnv } from "@constatic/base"; * * export const env = await validateEnv(type({ * BOT_TOKEN: "string > 0" * })); */ export declare function validateEnv(schema: T): Promise>;