@copilotkit/react-core
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
17 lines (14 loc) • 689 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import React__default, { SetStateAction, ReactNode } from 'react';
interface ThreadsContextValue {
threadId: string;
setThreadId: (value: SetStateAction<string>) => void;
}
declare const ThreadsContext: React__default.Context<ThreadsContextValue | undefined>;
interface ThreadsProviderProps {
children: ReactNode;
threadId?: string;
}
declare function ThreadsProvider({ children, threadId: explicitThreadId }: ThreadsProviderProps): react_jsx_runtime.JSX.Element;
declare function useThreads(): ThreadsContextValue;
export { ThreadsContext, ThreadsContextValue, ThreadsProvider, ThreadsProviderProps, useThreads };