@wicii/chat-primitive
Version:
Vue 3 chat primitives for @ai-sdk/vue
19 lines (18 loc) • 768 B
TypeScript
import { type InjectionKey } from 'vue';
import type { UseChatHelpers } from '@ai-sdk/vue';
type ChatContext = UseChatHelpers;
export declare const chatInjectionKey: InjectionKey<ChatContext>;
export declare function injectChatContext(): ChatContext;
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
chatContext: ChatContext;
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
chatContext: ChatContext;
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
default?: (props: {}) => any;
}>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};