UNPKG

convex

Version:

Client for the Convex Cloud

26 lines 1.21 kB
import { Context } from "../../bundler/context.js"; declare const _FRAMEWORKS: readonly ["create-react-app", "Next.js", "Vite", "Remix", "SvelteKit", "Expo", "TanStackStart"]; type Framework = (typeof _FRAMEWORKS)[number]; type ConvexUrlWriteConfig = { envFile: string; envVar: string; existingFileContent: string | null; } | null; export declare function writeConvexUrlToEnvFile(ctx: Context, value: string): Promise<ConvexUrlWriteConfig>; export declare function changedEnvVarFile({ existingFileContent, envVarName, envVarValue, commentAfterValue, commentOnPreviousLine, }: { existingFileContent: string | null; envVarName: string; envVarValue: string; commentAfterValue: string | null; commentOnPreviousLine: string | null; }): string | null; export declare function getEnvVarRegex(envVarName: string): RegExp; export declare function suggestedEnvVarName(ctx: Context): Promise<{ detectedFramework?: Framework; envVar: string; }>; export declare function buildEnvironment(): string | boolean; export declare function gitBranchFromEnvironment(): string | null; export declare function isNonProdBuildEnvironment(): boolean; export {}; //# sourceMappingURL=envvars.d.ts.map