@langchain/core
Version:
Core LangChain.js abstractions and schemas
29 lines (28 loc) • 897 B
TypeScript
declare global {
const Deno: {
version: {
deno: string;
};
env: {
get: (name: string) => string | undefined;
};
} | 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;
};
/**
* @deprecated Use getRuntimeEnvironmentSync instead
*/
export declare function getRuntimeEnvironment(): Promise<RuntimeEnvironment>;
export declare function getRuntimeEnvironmentSync(): RuntimeEnvironment;
export declare function getEnvironmentVariable(name: string): string | undefined;