/** * Overwrite values on process.env with the given values (if not undefined) * * Used by the CLI to configure environment variables that are read by * various subsystems (e.g., WORKFLOW_TARGET_WORLD, WORKFLOW_LOCAL_DATA_DIR). * Note: WORKFLOW_VERCEL_* env vars are read back via getEnvVars() and passed * to @workflow/world-vercel's createWorld() explicitly; they are NOT read by runtime createWorld(). */ export declare const writeEnvVars: (envVars: Record) => void; export declare const getEnvVars: () => Record; /** * Every `.well-known/workflow/v1/manifest.json` below `appDir`, sorted. * * Mirrors the Next.js builder's stale-route sweep: it skips `node_modules` * and dot directories, and stops at the first `.well-known`. The builder * rejects route prefixes with `.`-prefixed segments, so a prefixed manifest * is never hidden below one. */ export declare function findPrefixedManifestPaths(appDir: string): Promise; export declare function findManifestPath(cwd: string): Promise; /** * Overwrites process.env variables related to local world configuration, * if relevant environment variables aren't set already. * * Throws if the workflow data directory can not be found. */ export declare const inferLocalWorldEnvVars: () => Promise; export declare const inferVercelProjectAndTeam: () => Promise<{ projectId: string; projectName: string | undefined; teamId: string; } | undefined>; /** * Merges a `.vercel` link into the explicitly configured project/team values. * * Explicit values are never replaced. The link fills in missing values, and * its project ID/name are only used when the link refers to the same project * as an explicit `--project` (matched by ID or name), so a stale or unrelated * link cannot redirect lookups to another project. */ export declare const resolveProjectFromLink: (envVars: Record, link: { projectId: string; projectName?: string; teamId: string; }) => { WORKFLOW_VERCEL_PROJECT: string; WORKFLOW_VERCEL_PROJECT_NAME: string; WORKFLOW_VERCEL_TEAM: string; }; export interface VercelEnvVars { token?: string; environment?: string; projectId?: string; projectName?: string; teamId?: string; } /** * Infers Vercel World configuration from the local environment (`.vercel` * folder, CLI auth file, Vercel API) and returns a resolved config object. * * Also writes the resolved values to `process.env` so the embedded web UI * (which reads `process.env` as a fallback) can pick them up. */ export declare const inferVercelEnvVars: () => Promise; //# sourceMappingURL=env.d.ts.map