@wicii/chat-primitive
Version:
Vue 3 chat primitives for @ai-sdk/vue
23 lines (22 loc) • 895 B
TypeScript
import { type InjectionKey, type Ref } from 'vue';
export declare const threadInjectionKey: InjectionKey<{
scrollTarget: Readonly<Ref<HTMLElement | null>>;
}>;
export declare function injectThreadContext(): {
scrollTarget: Readonly<Ref<HTMLElement | null>>;
};
export interface ThreadRootProps {
autoScroll?: boolean;
autoScrollBehavior?: ScrollBehavior;
}
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ThreadRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ThreadRootProps> & Readonly<{}>, {
autoScrollBehavior: ScrollBehavior;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
default?: (props: {}) => any;
}>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};