//#region src/env-file.d.ts export declare const ENV_FRAMEWORKS: readonly ["next", "tanstack-start", "sveltekit", "remix", "nuxt", "hono-workers"]; export type EnvFramework = (typeof ENV_FRAMEWORKS)[number]; /** The conventional env file for a framework. `.env` when we do not know. */ export declare function envFileFor(framework: string | null | undefined): string; /** The canonical id for a framework name, or null when unrecognised. */ export declare function normalizeFramework(framework: string | null | undefined): EnvFramework | null; /** * Which env file to actually write to. * * Prefers a file that already holds the key over the conventional one: a * project that has been running with credentials in `.env` must not suddenly * get a second copy in `.env.local`, leaving two files disagreeing and the * stale one still loading. Convention applies to new setups, not to a working * one someone already has. */ export declare function resolveEnvFile(input: { /** Candidate filenames that already contain the credential, if any. */ existing: string[]; framework: string | null | undefined; }): string; //#endregion