import { OptionalImportMap } from "./import_type.js"; //#region src/load/index.d.ts /** * Load a LangChain module from a serialized text representation. * NOTE: This functionality is currently in beta. * Loaded classes may change independently of semver. * * **WARNING — insecure deserialization risk.** This function instantiates * classes and invokes constructors based on the contents of `text`. Never * call this on untrusted or user-supplied input. Only deserialize data that * originates from a trusted source you control. * * See `@langchain/core/load` {@link LoadOptions} for detailed security * guidance on `secretsFromEnv`, `secretsMap`, and import maps. * * @param text Serialized text representation of the module. * @param secretsMap * @param optionalImportsMap * @returns A loaded instance of a LangChain module. */ declare function load(text: string, secretsMap?: Record, optionalImportsMap?: OptionalImportMap & Record, additionalImportsMap?: Record, secretsFromEnv?: boolean): Promise; //#endregion export { load }; //# sourceMappingURL=index.d.ts.map