declare global { const Deno: { version: { deno: string; }; } | undefined; } export declare const isBrowser: () => boolean; export declare const isWebWorker: () => boolean; export declare const isJsDom: () => boolean; export declare const isDeno: () => boolean; export declare const isNode: () => boolean; export declare const getEnv: () => string; export type RuntimeEnvironment = { library: string; libraryVersion?: string; runtime: string; runtimeVersion?: string; }; export declare function getRuntimeEnvironment(): Promise; /** * Retrieves the LangChain-specific environment variables from the current runtime environment. * Sensitive keys (containing the word "key") have their values redacted for security. * * @returns {Record} * - A record of LangChain-specific environment variables. */ export declare function getLangChainEnvVars(): Record; /** * Retrieves the environment variables from the current runtime environment. * * This function is designed to operate in a variety of JS environments, * including Node.js, Deno, browsers, etc. * * @returns {Record | undefined} * - A record of environment variables if available. * - `undefined` if the environment does not support or allows access to environment variables. */ export declare function getEnvironmentVariables(): Record | undefined; export declare function getEnvironmentVariable(name: string): string | undefined; export declare function setEnvironmentVariable(name: string, value: string): void; interface ICommitSHAs { [key: string]: string; } /** * Get the Git commit SHA from common environment variables * used by different CI/CD platforms. * @returns {string | undefined} The Git commit SHA or undefined if not found. */ export declare function getShas(): ICommitSHAs; export {};