///
import { UIMessage, UseStreamRuntimeOptions } from "./types.js";
import { AppendMessage } from "@assistant-ui/core";
//#region src/useStreamRuntime.d.ts
declare const runConfigToSubmitOptions: (runConfig: AppendMessage["runConfig"]) => {
config: {
configurable: Record;
};
} | undefined;
/**
* Group the graph's accumulated `UIMessage`s by the assistant message they
* belong to. Non-array state and entries without a parent link are dropped.
* The parent id comes from `metadata.message_id` (Python SDK) or
* `metadata.id` (JS SDK).
*/
declare const groupUIMessagesByParent: (value: unknown) => Map;
/**
* Creates an assistant-ui runtime backed by LangChain's `useStream` hook.
* Accepts the same options as `useStream` from `@langchain/react`, plus
* `cloud` and `adapters`.
*
* @example
* ```tsx
* import { useStreamRuntime } from "@assistant-ui/react-langchain";
* import { AssistantRuntimeProvider, Thread } from "@assistant-ui/react";
*
* function App() {
* const runtime = useStreamRuntime({
* assistantId: "agent",
* apiUrl: "http://localhost:2024",
* });
*
* return (
*
*
*
* );
* }
* ```
*/
declare const useStreamRuntime: (rawOptions: UseStreamRuntimeOptions) => import("@assistant-ui/core").AssistantRuntime;
//#endregion
export { groupUIMessagesByParent, runConfigToSubmitOptions, useStreamRuntime };
//# sourceMappingURL=useStreamRuntime.d.ts.map