@langchain/core
Version:
Core LangChain.js abstractions and schemas
18 lines (17 loc) • 770 B
TypeScript
import { AsyncLocalStorageInterface } from "./globals.js";
//#region src/singletons/async_local_storage/index.d.ts
declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface {
getStore(): any;
run<T>(_store: any, callback: () => T): T;
enterWith(_store: any): undefined;
}
declare class AsyncLocalStorageProvider {
getInstance(): AsyncLocalStorageInterface;
getRunnableConfig(): any;
runWithConfig<T>(config: any, callback: () => T, avoidCreatingRootRunTree?: boolean): T;
initializeGlobalInstance(instance: AsyncLocalStorageInterface): void;
}
declare const AsyncLocalStorageProviderSingleton: AsyncLocalStorageProvider;
//#endregion
export { AsyncLocalStorageProviderSingleton, MockAsyncLocalStorage };
//# sourceMappingURL=index.d.ts.map